RE: Cannot set height of table in IE 8
Your table heigth will depend on the content or objects placed into the
individual cells table. Place data or graphics and IE8 should respond to
your size issue.
"dmkash" wrote:
> I'm trying to set the height of a table so that I can get it to scroll. No
> matter what I do, I cannot get IE 8 to set the height of the table properly.
> I have a table defined this way:
>
> <table>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> <tr><td>cell 1</td><td>cell2</td><td>cell3</td></tr>
> </table>
>
> Then, in my CSS I have:
>
> table { display: block; height: 200px; overflow: scroll; width: 400px; }
>
