Page 1 of 1

TD height

Posted: Thu Nov 10, 2005 2:04 pm
by Ree
How do I make TD specific height? Whatever I do it stays the same in FF. Seems simple heh.

Posted: Thu Nov 10, 2005 2:09 pm
by foobar
Try setting the height of the row (TR) instead of the column/cell (TD).

Posted: Thu Nov 10, 2005 2:18 pm
by Ree
Actually this doesn't help.

Posted: Fri Nov 11, 2005 12:05 am
by n00b Saibot

Code: Select all

<td style="height:100px">Height is set to 100px</td>

Posted: Fri Nov 11, 2005 12:43 am
by s.dot
setting a height in a row doesn't validate with w3cs HTML validator... but it works in IE :P (haven't tried it in any other browser)

You can set a table cells height to any size you wish using <td height="100">.
This will give you a 100 pixel tall table cell. HOWEVER, if any content inside of that table cell (or other table cells in that row) exceed 100 pixels in height, then your table cell would be stretched larger than 100 pixels. For control over that you could use <td style="height: 100px; overflow: auto;">..... adjusting the overflow as you need.