I want to display a scroll bar inside a table (inside a div):
<div style="width:789px; height:150px; overflow:auto;">
...
</div>
The problem is that the div has a default height of already 150 pixels. I want it to not have the height defined from the very beginning, and when the div reaches 150 pixels, a scroll bar will appear. How can I achieve this?
source
share