[thelist] Mozilla/NS6 table rendering problems?

MRC webmaster at equilon-mrc.com
Thu Mar 7 09:47:00 CST 2002


Nick,

> Quick fix...
>
> <style type="text/css">
>     td img {
>         display: block;
>     }
> </style>

    Of course, the drawback to doing this is that if a td contains two or
more images side by side, "display: block" will force them onto separate
lines. If each image is within its own td (which is probably more likely in
a pixel-precise layout), then this should fix the problem without unwanted
side-effects.
    Another fix that I have dabbled with, but have only tested
preliminarily, is to apply "line-height: 0px" to any td that contains an
image that is part of a pixel-precise layout. This seemed to work fine in
Mozilla 0.9.8/Netscape 6.2.1 (where the line-height problem occurs in the
first place) without unwanted side-effects in IE 6/Win32 and, surprisingly,
in Netscape 4.x.

James Aylard




More information about the thelist mailing list