Closed Bug 111961 Opened 23 years ago Closed 23 years ago

inner table is not cented when <TD> CSS text-align: center

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 49274

People

(Reporter: sagu, Assigned: karnaze)

References

()

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6+) Gecko/20011125 BuildID: 2001112508 Table's <TD> has CSS class which text-align defines as center When <TD> contens is other table, table is not centered while text contens is centered Reproducible: Always Steps to Reproduce: 1.launch mozilla 2.open URL http://www.vtex.lt/sagu/tat.html 3. Actual Results: inner table is left aligned(not centered) Expected Results: inner table MUST be centered test file: <html> <head> <style type="text/css"> .ca {text-align: center;} </style> </head> <body> <table width="30%" border=1> <tr><td class="ca"><table border=1><tr><td>inner table is not centered</table> <tr><td class="ca">while text is centered </table> </body> </html>
Attached file simple test
text-align isn't meant to center tables, so you have wrong expectations ;) DUP of (INVALID) bug #49274.
Indeed. text-align does not, should not, and will not center blocks, which is what tables are. Use "margin-left: auto; margin-right: auto" on the table. (bug 49274 has the details). *** This bug has been marked as a duplicate of 49274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verified that this is a dupe of Bug # 49274 and its invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: