Skip to content

Instantly share code, notes, and snippets.

@ab-5v
Created April 9, 2014 09:11
Show Gist options
  • Save ab-5v/10245226 to your computer and use it in GitHub Desktop.
Save ab-5v/10245226 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