Why won't my site auto center in IE? Quick CSS question..

Discussion in 'CSS' started by js09, Apr 6, 2008.

  1. #1
    My site is: http://osuato.org/

    Tee div that the entire site is held within has these css properties:

    #taubox {
    border: 1px solid #888;
    width:876px;
    position: relative;
    margin: 0 auto 0 auto;
    padding: 5px 5px 5px 5px;
    background-color: #111;
    border-style: dotted
    }

    it auto centers find in FF but not IE. I have the position and margin properties set correct. Any ideas why? thanks
     
    js09, Apr 6, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    You cannot have anything at all before the DTD. Correct your syntax errors. You also need to reset your editor to use the correct character encoding. Your server says utf-8, but your text is actually windows-1252, which uses reserved character values, not allowed in any iso encoding.

    cheers,

    gary
     
    kk5st, Apr 6, 2008 IP
  3. js09

    js09 Peon

    Messages:
    232
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks gary, i'm a novice at this still so these are good pointers. i'll let you know if i need any more help!
     
    js09, Apr 6, 2008 IP