Results 1 to 4 of 4

Thread: Problem centering layout in IE6

  1. #1
    Join Date
    Aug 2006
    Posts
    101
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Problem centering layout in IE6

    I have looked into the other threads to find a solution for my problem, because I am sure I am not the only one to meet this problem, but couldn't find a proper solution.

    I am creating a new website, with a fixed 900px width layout, and want to center the layout on the screen. I have checked it in the main browsers on my pc (FF3.0.3, IE7, OP9.10 & NS8.1.2) and all looks fine, but a friend told me that in IE6 the layout is on the left side of the screen.

    Please see: http://www.arti-sign.nl/chi-ku-cha/serie4index.htm.

    Just for developping purposes I have put the styles straight into the file, so it's all in the source.

    Does someone know how I can solve this issue for IE6 (still used by many people...)?

    Thanks and have a nice day!
    Monique
    Last edited by monique; 11-03-2008 at 03:27 PM.

  2. #2
    Join Date
    Oct 2008
    Location
    kolkata, india
    Posts
    75
    Thanks
    2
    Thanked 10 Times in 10 Posts

    Default

    try this code
    body {
    background:#ffb300;
    margin:0;
    padding:0;
    text-align:center;
    }
    it may solve ur problem

  3. #3
    Join Date
    Aug 2006
    Posts
    101
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thanks Monicasaha!

    How simple can life be

    Because all the text consequently became centered, I also had to add
    Code:
    text-align:left;
    in the page container. I ran a test on http://browsershots.org/ and it works fine now - although I am still not 100% happy with some other "variations" in IE6 compaired to the other browsers...

    Monique

  4. #4
    Join Date
    Oct 2008
    Location
    kolkata, india
    Posts
    75
    Thanks
    2
    Thanked 10 Times in 10 Posts

    Smile

    yah.. i agree IE 6 sometimes does not make any sense but still as long as it there we need to keep that in mind..and work as per as it wants..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •