Created
May 11, 2012 14:49
-
-
Save tzi/2660231 to your computer and use it in GitHub Desktop.
An #example of before #css pseudo-element : Background is not always applied on children
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
a { | |
} | |
a:hover { | |
background-color: #F5F2F0; | |
} | |
a:before { | |
content: 'coco '; | |
} | |
a.absolute:before { | |
position: absolute; | |
top: 50px; | |
} |
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
<a href="#">Bou</a><br> | |
<a href="#" class="absolute">Bou</a> |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment