Does anyone else have issues with these? This is my code #page { margin: 10px auto 10px auto; } Code (markup): It works fine and dandy in Firefox and Mac browsers, but not in IE7. It is left justified in IE7. Anyone have a fix for this? It's not the first time I've seen it either.
Looks like IE7 would be fine with that, are you sure its not a child element thats causing the problem?
If you fail to use a complete and proper DTD, IE6+ goes into quirks mode, where it doesn't grok {margin: 10px auto;}, the 'auto' part, that is. Trigger standards mode and all should be well. cheers, gary
I'm going to second the question about the DOCTYPE. Do you have a full and complete DOCTYPE? Are you using HTML or XHTML (albeit served as HTML with some syntatical errors)?