I want to create a scrollable div tag with a fixed height that gets a vertical scroll bar. I’m trying to get this to work in chrome.
This is my CSS:
#designDiv
{
width:249px;
height:299px;
background-color:Gray;
overflow-y: scroll;
max-width:230px;
max-height:100px;
}
It does show the vertical scroll bar but the problem is during the run-time when the user adds some content to the #designDiv. It does not scroll and the #designDiv begins to expand vertically.
How do I create a scrollable div tag vertically for chrome?
Well, your code worked for me (running Chrome 5.0.307.9 and Firefox 3.5.8 on Ubuntu 9.10), though I switched
to
Demo page over at: http://davidrhysthomas.co.uk/so/tableDiv.html.
xhtml below: