Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created March 1, 2013 20:14
Show Gist options
  • Save LeaVerou/5067421 to your computer and use it in GitHub Desktop.
Save LeaVerou/5067421 to your computer and use it in GitHub Desktop.
Hashes in containers
/**
* 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 }
<div>
<section id="a">a</section>
<section id="b">b</section>
<section id="c">c</section>
<section id="d">d</section>
</div>
// alert('Hello world!');
{"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