Closed Bug 240623 Opened 21 years ago Closed 21 years ago

centered table is rendered at the left side

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

VERIFIED INVALID

People

(Reporter: info, Assigned: bugzilla)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 1. Put the following code into an html-page: <html> <head> <title>Test-Suite</title> </head> <body style="text-align: center; alignment: center"> bla <table style="border: 1px solid #000000" cellspacing="0"> <tr> <td>bla</td> </tr> </table> </body> </html> 2. Open the page in Firefox. Firefox renders the normal text centered, but the table is aligned left. Reproducible: Always Steps to Reproduce: 1.Put the code from above in an html-page 2.Open the page with Firefox (0.8) Actual Results: Firefox displays the table left-aligned. Not centered as it should be Expected Results: Render the table centered.
You don't align tables with text-align. To center a table, apply margin-left : auto; margin-right: auto; to the table itself. "alignment: center" on the body is not a valid CSS rule either. It will never do anything. ->Invalid
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.