Here’s what I’m trying to make. I want a div which appears as a box of fixed dimensions, into which various javascript functions will be placing text over time. When the number of lines of text exceeds the height of the box, I’d like a scrollbar to appear alongside the box, so that you can scroll through the text inside it while the box itself remains a fixed height.
How could this be accomplished?
using css you can do this:
you can also
overflow-y: autoas @tw16