Grow your CSS skills. Land your dream job.

[Solved] Centering suddenly broke in IE (margin: 0 auto;)

  • # June 22, 2010 at 5:43 pm

    .

    # June 22, 2010 at 6:41 pm

    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.

    # June 22, 2010 at 6:47 pm

    Wow, thanks, I completely missed that :)

    Solved.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".