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)

x86
Windows Server 2003
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 167685

People

(Reporter: brian, Unassigned)

References

()

Details

Attachments

(1 file)

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.
This is simply a copy of the test case pointed to by the URL.
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.

Attachment

General

Creator:
Created:
Updated:
Size: