Skip to main content

Kevin Champion's Library tagged hacks   View Popular

01 Jul 09

Internet Explorer & CSS issues

  • Got a fixed width website and can't get it to centrally align in the window in Internet Explorer? Or you can get it to centrally align in IE but not in any other browser?
  • The second command, margin: 0 auto, basically gives our containing element an automatic margin on the left and right, thereby positioning the containing element in the centre of the browser window.



    IE however, will need slightly different commands to make this work:




    body {

    text-align: center

    }

    #container {

    width: 770px;

    margin: 0 auto;

    text-align: left

    }

1 - 1 of 1
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo