Home › Forums › CSS › [Solved] Centering suddenly broke in IE (margin: 0 auto;) › Re: [Solved] Centering suddenly broke in IE (margin: 0 auto;)
June 22, 2010 at 6:41 pm
#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
*
*
–>
* 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.