Closed
Bug 272173
Opened 20 years ago
Closed 20 years ago
Unable to center/right align table using CSS text-align
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 167685
People
(Reporter: brian, Unassigned)
References
()
Details
Attachments
(1 file)
1.19 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Setting the text-align CSS property to center or right has no effect on tables within the given block, except to *disable* an align attribute's effect on the table. Reproducible: Always Steps to Reproduce: 1. Set the text-align CSS property of a body or div element that contains a table to right or center. Actual Results: The table remains left-aligned. Expected Results: The table should have honored the text-align property of its parent. Setting the text-align property of the table's parent to -moz-center does the right thing, but is not compatible with other browsers. Setting the align="center" attribute on the table itself does the right thing, but hard-codes presentational info rather than using maintainable site-wide rules.
Reporter | ||
Comment 1•20 years ago
|
||
This is simply a copy of the test case pointed to by the URL.
Comment 2•20 years ago
|
||
Dupe of bug 167685. See also bug 260328. *** This bug has been marked as a duplicate of 167685 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•