Closed Bug 248421 Opened 22 years ago Closed 22 years ago

Tables don't respect CSS alignment from enclosing <div>

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: eu_neke, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.8 Using the text-align style property on a <div> element will align just about any element, except tables. The content of the table follows the appropriate rules, but the table itself does not. Using <center></center> or <div align="center"> work as expected. Reproducible: Always Steps to Reproduce: Actual Results: Table is left-aligned Expected Results: Table is centred.
Severity: major → normal
text-align does not apply to tables. It's for aligning inline text.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.