Results 1 to 2 of 2
Thread: Centering Works but then doesnt
Jun 20, 2008, 18:20 #1
Centering Works but then doesnt
Hey Guys, I'm a little stuck here,
In FF it centers, but in IE the centering goes off!
I know OsCommerce is not XHTML valid.
margin: 0 auto;
Its all a bunch of tables in OsCommerce jammed into a #fit DIV, there are no unclosed table tags in my validation, just a bunch of silly attributes.
If you have any idea why IE does this I well appreciate it
Jun 21, 2008, 01:44 #2
- Join Date
- May 2007
- Countryside, Sweden
- 0 Post(s)
- 0 Thread(s)
IE goes into quirks mode because of the incomplete doctype, and auto centre doesn't work.
Either you can add text-align:center to the body that works in quirks mode, or better complete the doctype.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">