ARTICLE AD BOX
A container is not its content, and vice versa......
#container{
height : 20px;
width : 100px;
background : yellow;
overflow-y : scroll;
}
<div id="container">
<div id="content">
a<br>
b<br>
c<br>
d<br>
e<br>
</div>
</div>
23k6 gold badges28 silver badges46 bronze badges
7 Comments
Why do I feel like you're asking me to justify myself? (4 times... isn't that harassment?) I voted to close this question, because it's poorly worded and ambiguous. It's necessity for the PO to rephrase it correctly.I answered this question, because it shows irrational CSS logic. My answer simply show how to implement a scrolling (with container and contents elements). It's not an answer to his question, because it's impossible to answer an irrational question. If the original poster doesn't rephrase their question correctly, then I will vote to have it deleted.
2026-05-04T03:24:01.617Z+00:00


