Page 1 of 1

Fixing (permanently) the height of a table element

Posted: Wed Mar 17, 2004 12:18 pm
by mjseaden
Hi All

Normally, when you set the height of a TD element, it remains at that height unless you get a text overflow, in which case it resizes to fit that text.

Is there any way I can truely fix the height of a TD, so that even if text in the cell does overflow, it still remains the same size?

Many thanks

Mark

Re: Fixing (permanently) the height of a table element

Posted: Wed Mar 17, 2004 1:09 pm
by TheBentinel.com
mjseaden wrote:Hi All

Normally, when you set the height of a TD element, it remains at that height unless you get a text overflow, in which case it resizes to fit that text.

Is there any way I can truely fix the height of a TD, so that even if text in the cell does overflow, it still remains the same size?

Many thanks

Mark
Sometimes style's seem to get more respect that height/width attributes. I don't know the syntax, but if you look into CSS and height/width, you can probably find what you're looking for.

something like

<tr style="height:95px">

Posted: Wed Mar 17, 2004 2:31 pm
by Unipus
toweter's correct. overflow: hidden or possibly overflow: auto is what you're looking for.

Posted: Wed Mar 17, 2004 2:58 pm
by mjseaden
Thanks, I'll give it a go.