What's wrong with my overflow: scroll code? [closed]

15 hours ago 1
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>

Mister Jojo's user avatar

7 Comments

Why did you answer and voted to close? Those two actions are mutually exclusive.

2026-05-03T21:55:05.857Z+00:00

No, that's not incompatible, maybe in your mind, but certainly not in mine!

2026-05-04T00:24:41.273Z+00:00

Huh? What do you think closing the question is for, if not for preventing it getting answers, because it's not suitable to be answered?

2026-05-04T01:37:06.5Z+00:00

If anything this looks like abuse, by trying to prevent others from answering it.

2026-05-04T01:37:14.29Z+00:00

2026-05-04T01:37:24.013Z+00:00

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

"It's not an answer to his question, because it's impossible to answer an irrational question." Then you shouldn't have posted it as an answer.

2026-05-04T07:18:37.467Z+00:00

Read Entire Article