Sent by Bruno Fassino on 18 April 2005 11:11
Masaoud Moonim wrote:
> In Mozilla FireFox (Mozilla/5.0 (Windows; U; Windows
> NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0)
> the table cell expands to more than '4' as height. Due
> to this the image displays in the center of the table
> cell. What I need is to ensure that the table cell
> fits to the size of the image (the margins of the
> table cell should not be large, but should be the same
> size of the image). The above can be achieved by using
> a different DTD, as in:
Giving display:block to your image, as in
td img { display: block; }
should allow the cell to tightly fit the image.
You can read more here [1]
hth,
Bruno
[1]
http://web.archive.org/web/20021016212316/http://devedge.netscape.com/viewso
urce/2002/img-table/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/