Closed Bug 384020 Opened 17 years ago Closed 17 years ago

div attribute and table don't use style text-align; only align, which isn't xhtml valid

Categories

(Firefox :: General, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 49274

People

(Reporter: Threesa, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

The text-align: center; property is being ignored in styles used upon div tags and tables. Only when you use align as propery, not defined in style, it works correctly. But align (with div) isn't XHTML valid!

Reproducible: Always

Steps to Reproduce:
1. Create a table or div with style="text-align: center;" and insert into the div a table for example
2.You won't see it centered, make it align="center"
3.It works
Actual Results:  
It didn't align the contents

Expected Results:  
It should have aligned the contents
text-align shouldn't center tables, it should center text and that works just fine.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.