Skip to content

Instantly share code, notes, and snippets.

@JamieMason
Created November 30, 2012 09:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamieMason/4174845 to your computer and use it in GitHub Desktop.
Save JamieMason/4174845 to your computer and use it in GitHub Desktop.
Keep all z-index definitions in the same file to keep track of them more easily
/*------------------------------------*\
$Z-INDEXES
\*------------------------------------*/
/**
* Ordered in the same stacking order as the values define;
* Highest first/top to lowest last/bottom
*/
.foo { z-index: 30; }
.bar { z-index: 20; }
.baz { z-index: 10; }
@jeffreyjjennings
Copy link

Simply brilliant! Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment