Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Table Row Heights, NS6

Improper row height in Netscape 6



3:46 pm on Sep 6, 2001 (gmt 0)

Inactive Member
Account Expired


Hello All,

I'm having a problem with tables rendering properly in Netscape 6. No matter where I specify the height of a cell or row, whether in the <tr>, or <td> tag or both, as a style or an attribute or all at once it doesen't render the height correctly. In so far in IE 4-6 it's worked fine.

I have a title row with a fixed height of 145px. The rests fills the remaining space. What NS has been doing is adjusting the height of the rows to an equal amount when there's not a lot of content. As the content increases the title row shrinks in height til it eventually get to my specified height and stops there. It seems to be taking the height value and only applying it as a minimum height value.

The page can be seen here. [jaytek.dtdns.net ]

5:14 pm on Sept 6, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
votes: 0

Welcome to Webmaster World forums, Rodney.

I notice you're using max-height. According the to the W3C specs for max-height [w3.org], it applies to "all elements except non-replaced inline elements and table elements." In other words, it's not supposed to create a max-height for TD.

I haven't had a chance to look closely at your code to see why Netscape wants to expand that cell when there is little content below it, but there must be a reason. I'll look closer when I get a chance. However, max-height DOES apply to divs and P elements and so on, so perhaps you can get the functionality you want through by-passing layout tables altogether.

5:45 pm on Sept 6, 2001 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 4, 2001
votes: 7


When all else fails, try an invisible image to fix the height. I've run into this problem with N6 and found that cell padding also influences height. And here's a real quirk in N6. If you use a DOCTYPE declaration, don't use
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

Only use <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

I don't know why, but when I had the full tag, N6 REALLY distorted my page. Strange but true. :)