[thelist] keeping table cells closed in NN 6.0

Aylard JA (James) jaylard at equilon.com
Thu Jan 25 20:52:31 CST 2001


zm,

	A couple of things:

1) You have not coded a height attribute for any of your <td> elements,
instead only putting in <img> elements with a set height. You should do
both.

2) Netscape 6, IMO, has implemented a shoddy interpretation of the
Transitional DTD -- at least the HTML 4.01 DTD, and I assume the XHTML DTD
as well. Although the "height" attribute is a valid attribute for the <td>
element, Netscape 6 ignores it in cases where it is set smaller than the
<td>'s line-height value.

	Netscape 6 treats <td>s as simple inline elements, like a <span>,
and enforces the line-height requirements of inline elements on them. I
think this is a misunderstanding of the <td>, especially since CSS 2 assigns
a default value of "table-cell" to the <td>'s display property, not "inline"
as the Mozilla interpretation suggests.
	I wrote an Evolt article recently about what Netscape 6 does to
pixel-precise table layouts, and a workaround or two:

<warning:wordwrap>
http://evolt.org/article/Does_Netscape_6_Break_Your_Table_Layouts/17/4427/in
dex.html
</warning:wordwrap>

hth,
James Aylard




More information about the thelist mailing list