CSS in IE "Centering a fixed width frame"

Discussion in 'Web Design and Development' started by Drew4884, Jun 18, 2007.

  1. Drew4884 macrumors newbie

    Joined:
    Apr 17, 2006
    #1
    I have gone through all the steps for IE to center the page, but for some reason it keeps pressing it to the left side. Can someone please take a look at the codes and let me know if they have any input on it? I am baffeled????

    http://www.nocca.com/dev/nocca/indexinclude.php

    Thank you so much in advance!
     
  2. radiantm3 macrumors 65816

    radiantm3

    Joined:
    Oct 16, 2005
    Location:
    San Jose, CA
    #2
    Set the body style to
    Code:
    text-align: center;
    
    Set the div you are trying to center as
    Code:
    text-align: left;
    margin: 0 auto;
    
     
  3. Drew4884 thread starter macrumors newbie

    Joined:
    Apr 17, 2006
    #3
    Hey...thank you - but thats exactly what i have ? Its still not quite working...any other ideas?
     
  4. hopejr macrumors 6502

    Joined:
    Nov 10, 2005
    Location:
    New South Wales, Australia
    #4
    Isn't the margin:auto bit supposed to be in the body part?
     
  5. Drew4884 thread starter macrumors newbie

    Joined:
    Apr 17, 2006
    #5
    Yall rock! Thank you !
     
  6. radiantm3 macrumors 65816

    radiantm3

    Joined:
    Oct 16, 2005
    Location:
    San Jose, CA
    #6
    No, it's not supposed to. Whether it solves the problem or not is another issue. :)
     
  7. Matteh117 macrumors regular

    Joined:
    May 24, 2007
    Location:
    Surrey, UK
    #7
    Margin is on the outside, padding on the inside. If you put margin on the body then it will push everything in because it has nowhere to go (same effect as a padding on the body).. that's why it solved the problem. :)
     

Share This Page