Skip to content

Instantly share code, notes, and snippets.

@abitgone
Created February 15, 2013 12:55
Show Gist options
  • Save abitgone/4960229 to your computer and use it in GitHub Desktop.
Save abitgone/4960229 to your computer and use it in GitHub Desktop.
Untitled
.scroll {
width: 400px;
height: 200px;
line-height: 20px;
overflow: scroll;
overflow-x: hidden;
overflow-y: scroll;
border: 1px solid #ccc;
}
.scroll p {
padding: 0 12px;
line-height: 40px;
height: 40px;
margin: 0;
}
.scroll :nth-child(2n) {
background-color: #f0f0f0;
}
<div class="scroll">
<p>This is an item</p>
<p>This is an item</p>
<p>This is an item</p>
<p>This is an item</p>
<p>This is an item</p>
<p>This is an item</p>
<p>This is an item</p>
<p>This is an item</p>
</div>
// alert('Hello world!');
{"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