Created
February 25, 2013 15:28
-
-
Save ultim8k/5030593 to your computer and use it in GitHub Desktop.
Complex selectors testing
This file contains hidden or 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
/** | |
* Complex selectors testing | |
*/ | |
.cnt { display:table; margin:20px auto; } | |
.dev { | |
padding:5px; | |
float: left; | |
margin: 10px; | |
background-color: lightgrey; | |
} | |
.mymate { background-color: lightgreen; } | |
.me { background-color: lightblue; } | |
.me + .mymate { background-color: orange; } |
This file contains hidden or 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
<div class="cnt"> | |
<div class="dev mymate">mate</div> | |
<div class="dev mymate">mate</div> | |
<div class="dev me">me</div> | |
<div class="dev mymate">mate</div> | |
<div class="dev mymate">mate</div> | |
</div> |
This file contains hidden or 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
// alert('Hello world!'); |
This file contains hidden or 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","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment