Closed Bug 3238 Opened 26 years ago Closed 25 years ago

Table is not centered

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: troy, Assigned: peterl-retired)

References

()

Details

After pulling the tree tonight, I noticed this page lays out wrong. I'm assuming
it's table related
Likewise, this page is wrong, too: http://www.city.net

There's some nasty looking messages on the debug output as well:
Area(td)(0)@0145A230: bad parent: maxSize WAS 5514480,1073741824
Area(td)(0)@0144E170: bad parent: maxSize WAS 5514480,1073741824
Area(td)(0)@014608F0: bad parent: maxSize WAS 675190,1073741824
Area(td)(1)@01467BB0: bad parent: maxSize WAS 4839230,1073741824
Area(td)(0)@014694E0: bad parent: maxSize WAS 5514480,1073741824
Area(td)(0)@0145BB90: bad parent: maxSize WAS 5514539,1073741824
Assignee: karnaze → kipp
Summary: Table is way too wide → Table is not centered
The above url and www.city.net don't appear to be too wide any more. However,
putting a <table> inside a <center> needs some Nav4.5 compatibility work. The
simple example below illustrates the problem. I'm changing the summary and
reassigning this to Kipp.

<center>
 <table border=1><tr><td>foo</tr></table>
</center>

Kipp says "Oddly enough, 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..."

Kipp, sorry if I reassigned a similar bug to you before.
Severity: normal → critical
Status: NEW → ASSIGNED
*** Bug 1878 has been marked as a duplicate of this bug. ***
*** Bug 4011 has been marked as a duplicate of this bug. ***
Assignee: kipp → peterl
Status: ASSIGNED → NEW
I've landed a work around for this problem so that tables are not treated
exactly the same as display: block elements. The result is that we may be
slightly non-conformant with CSS2...But its not clear!

I'm reassigning the bug to peter linss until the style spec issue is resolved -
should tables be alignable by text-align or not, or should we event a
"-moz-center" attribute for navigator compatability or what.

Once the final decision is made, peter can assign it back to me.
*** Bug 3722 has been marked as a duplicate of this bug. ***
*** Bug 2651 has been marked as a duplicate of this bug. ***
*** Bug 4212 has been marked as a duplicate of this bug. ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
I've just checked in compatability code that supports nav4 behavior *and* CSS
behavior (at the moment nav4 behavior is on by default).
Status: RESOLVED → VERIFIED
Using 3/26 build on Win 95, Win NT, Win 98, Linux and Mac8.5, table is centered
on all platforms. Verifying bug fixed.
You need to log in before you can comment on or make changes to this bug.