centered table is rendered at the left side

VERIFIED INVALID

Status

()

--
trivial
VERIFIED INVALID
15 years ago
15 years ago

People

(Reporter: info, Assigned: bugzilla)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
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.

Comment 1

15 years ago
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
Last Resolved: 15 years ago
Resolution: --- → INVALID

Updated

15 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.