Click to See Complete Forum and Search --> : Why won't table height work in Mozilla?


kau
01-02-2005, 04:51 PM
I specify the table height of 90 and there is an image that is 90 in height. IE it looks fine, the image is agansit both top and bottom borders. In Mozilla it leaves a small gap above and below the image.

PeOfEo
01-02-2005, 04:56 PM
do not specify a height at all. If the image is 90px high then the table will stretch to 90px, the height of the image. A table cell by nature will stretch with it's content.

kau
01-02-2005, 04:59 PM
Originally posted by PeOfEo
do not specify a height at all. If the image is 90px high then the table will stretch to 90px, the height of the image. A table cell by nature will stretch with it's content.

Well I just took out the height= and it still is leaving a gap unlike IE.

PeOfEo
01-02-2005, 05:12 PM
Put this in the <td> tag
style="padding:0px;"

ray326
01-02-2005, 11:43 PM
td img {display:block}