Closed Bug 3309 Opened 26 years ago Closed 26 years ago

Tables render/resize strange

Categories

(Core :: Layout: Tables, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: corion, Assigned: buster)

Details

1) As with the original Netscape, a table attribute of 'border="0"' will instead of the semantics render a border around the table. and 2) The following snippet will render incorrect until Gecko is resized : <html><body><div align="center"><center><table BGCOLOR="#000000" CELLSPACING="5" width="80%" cellpadding="5"><TBODY> <tr><td width="30" BGCOLOR="#FFCC33" align="right">1<td BGCOLOR="#FFCC33"><a href="../SOUNDTRACK - LOLA RENNT - 01 - BELIEVE.MP3">Believe</a><td BGCOLOR="#FFCC33" width="41" align="right">4:53</tr> </TBODY></table></font><div align="right"><br><br><A HREF="../index.html"><font SIZE="3" FACE="Arial" COLOR="#FFCC33">Back to the index...</font></A></div></center></div></body></html> It is expected that the table at least displays the three columns and occupies 80% of the width of the browser window, leaving 10% to each side. What happens is that the table starts way into the page and continues off-page (without a scrollbar being added). The black border around the page does not continue around the cells. Resizing the browser window removes this problem until the page is reloaded. As an aside, the table (still) does not inherit the surrounding <FONT> tag, but I guess that is more of a philosophy thing.
Status: NEW → ASSIGNED
The only problem I can find is that the <table> is not centered in the <div>. Here is a simple test case illustrating that the alignment info from the <center> tag is not getting passed to the <table> <body> <center> <table border=1><tr><td>foo</tr></table> </center> </body>
Assignee: karnaze → peterl
Status: ASSIGNED → NEW
Kipp says <Its a compatability bug, not a css handling bug. We now conform to css's box model which states that "text-align" applies to "inline boxes". Since a table is not an inline box, it isn't affected by the text-align. We need a compatability hack to enable text-align (or some -moz-center property) to apply in this situation...> So, a <table> inside of a <center> renders correctly in Standard Mode but not in NavQuirks mode. I'm reassigning this to Peter.
Assignee: peterl → kipp
Another duplicate for you to close
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
The center-table issue has been resolved.
Status: RESOLVED → VERIFIED
Using 3/26 build and the HTML code provided, verified bug fixed.
You need to log in before you can comment on or make changes to this bug.