Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Centering suddenly broke in IE (margin: 0 auto;) Re: [Solved] Centering suddenly broke in IE (margin: 0 auto;)

#78452
virtual
Participant

You are in Quirks mode in IE not standards mode and this is the culprit

Quote:
<!–
* YEE’S HUNG GA KUNG FU EDINBURGH 2010
* HTML, CSS, JavaScript & DESIGN by MARTIN STARK
*
*
–>

The DOCTYPE must the very first thing on the page, any non-whitespace textual content before the doctype will cause IE to go into quirks mode.