Created
March 1, 2013 20:14
-
-
Save LeaVerou/5067421 to your computer and use it in GitHub Desktop.
Hashes in containers
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
/** | |
* Hashes in containers | |
*/ | |
div { | |
width: 300px; | |
height: 300px; | |
overflow: auto; | |
border: 1px solid gray; | |
margin: 20px auto; | |
} | |
section { | |
height: 200px; | |
background: blue; | |
} | |
section#a { background: red } | |
section#b { background: blue } | |
section#c { background: green } | |
section#d { background: purple } |
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
<div> | |
<section id="a">a</section> | |
<section id="b">b</section> | |
<section id="c">c</section> | |
<section id="d">d</section> | |
</div> |
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
// alert('Hello world!'); |
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","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment