Closed Bug 68954 Opened 25 years ago Closed 25 years ago

text-align:center does not center table

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 49274

People

(Reporter: david, Assigned: pierre)

References

()

Details

Bug 12935, marked as DUPL FIXED, has come back. <div style="text-align:center;"> <p>this paragraph will be centered</p> <table border="1"> <tr><td> but this table </td> <td> will not </td></tr> <tr><td> be centered </td> <td> at all </td></tr> </table> </div>
I think that this is wrong. To center tables you would set the l/r margins to auto. ian -hixie- has answered this one over and over again and for the life of me I cannot find one of these dupes where he states this method of centering tables as INVALID.
Summary: text-align:center does not affect tables → text-align:center does not center table
Yes, DUP of INVALID bug 49274 ("text-align:center;" doesn't center table).
Richard is right. Read the comments on bug 49274 for more details about why this method of centering tables does not and should not work. *** This bug has been marked as a duplicate of 49274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
yeah...
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.