I’m trying to get the auto scroll bar to appear in IE9 for a tbody element. My css works fine in the other browsers I’m testing (Firefox, Chrome and Safari).
The application I’ve built allows the user to add rows to a table. The table grows in height until it reaches 190px. At 190px, the table’s tbody should begin hiding additional rows and incorporate a scroll bar. In IE9, the body continues to grow and grow, never stopping at 190px.
Here’s the snippet in question:
table
{
width: 420px;
border-collapse: collapse;
}
/* thead and th (which I don't want to scroll) code here... */
tbody
{
display: block;
width: 100%;
max-height: 190px;
overflow: auto;
}
Any information on IE conventions related to this issue would be appreciated. Thanks.