Skip to main content

Kevin Champion's Library tagged webdesign   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 - 20 of 159 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo