Created
September 21, 2017 16:38
-
-
Save peter-mouland/b6a0d68a0b3708539a657dfceef5a48a to your computer and use it in GitHub Desktop.
Z-layer Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* my-bad-ad.css */ | |
.money-maker { | |
z-index: 9999999999; | |
} | |
/* app.css */ | |
nav { | |
/* a z-layer is a key vaulue pair: layer-name layer-index */ | |
z-layers: content 1, ad 2, nav 3, modal 4; | |
} | |
.mega-nav { | |
/* nav on z-layer-index 3 is heigher than the default (1) from .my-bad-ad */ | |
/* this means .mega-nav is now above .my-bad-ad */ | |
z-layer: nav; | |
z-index: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment