Created
August 20, 2014 13:37
-
-
Save ab-5v/7cdd16cdee359dd632b3 to your computer and use it in GitHub Desktop.
Scroll problem
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 problem | |
*/ | |
.scroll { | |
position: absolute; | |
max-height: 200px; | |
overflow-y: auto; | |
background: #AFF; | |
} | |
.item { | |
padding: 20px; | |
background: #FAF; | |
} | |
.item__i { | |
width: 100px; | |
height: 40px; | |
margin-bottom: 10px; | |
background: #FFA; | |
} |
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"> | |
<div> | |
<div class="item"><div class="item__i"></div></div> | |
<div class="item"><div class="item__i"></div></div> | |
<div class="item"><div class="item__i"></div></div> | |
</div> | |
</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-vertical","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