Closed Bug 210015 Opened 22 years ago Closed 22 years ago

DIV in BODY not centered when using text-align

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ben, Assigned: dbaron)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030612 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030612 In the page http://www.benzalez.plus.com/ the "main" div should be centered on the page, because i'm using "text-align: center" in the BODY def in the stylesheet, but it displays on the left. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: Centered the DIV inside the BODY tag Works as expected in IE6 for Windows 2000 (!)
IE is doing it wrong. The proper way to center a DIV is margin-left : auto, margin-right : auto.
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.