Skip to content

Instantly share code, notes, and snippets.

@ab-5v
Created August 20, 2014 13:37
Show Gist options
  • Save ab-5v/7cdd16cdee359dd632b3 to your computer and use it in GitHub Desktop.
Save ab-5v/7cdd16cdee359dd632b3 to your computer and use it in GitHub Desktop.
Scroll problem
/**
* 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;
}
<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>
// alert('Hello world!');
{"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