How to make a scrollbar appear?
css, html, javascript, jquery, scrollbar
Solution
using css you can do this:
div{
overflow-y: scroll
}
you can also `overflow-y: auto` as @tw16
Problem
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?