margin: auto in IE & FF (urgent help needed :))

Discussion in 'CSS' started by crazyryan, Nov 10, 2008.

  1. #1
    Hey

    For some reason IE is messing around and won't align to the center when I use margin: auto on my container.

    URL REMOVED

    Anyone know why?

    It's fine in FF but not IE :mad:

    Thanks

    EDIT: html comment before doctype sent ie into quirks mode apparently, thanks
     
    crazyryan, Nov 10, 2008 IP
  2. lektrikpuke

    lektrikpuke Well-Known Member

    Messages:
    297
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    113
    #2
    IE doesn't play well with CSS. In the html try align=center (on the offending div) or maybe text-align:center. Keep the CSS for the browsers that "try" to work with CSS.
     
    lektrikpuke, Nov 11, 2008 IP