Created
February 15, 2013 12:55
-
-
Save abitgone/4960229 to your computer and use it in GitHub Desktop.
Untitled
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
.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; | |
} |
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 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> |
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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment