Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Forced centering in IE

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22964
    skater102
    Member

    I am working on a new design and It is not centering in IE . It centers fine in Firefox, Safari, and Opera but not IE . Got any ideas of what the problem is.

    #48652
    chazzwick
    Member

    we need to see the html and css to see whats going on

    #48654
    skater102
    Member
    "chazzwick" wrote:
    we need to see the html and css to see whats going on

    I have everything within a page wrap.

    The HTML:

    <div id="page-wrap"> </div>

    The CSS :

    #page-wrap{
    width: 950px;
    margin:0 auto;
    }

    How’s that.

    #48670
    skater102
    Member
    "box" wrote:
    Use a strict doctype – a transitional doctype forces IE6 into quirks mode and the margin:0 auto; is unrecognised. In strict (standards mode) your site should centre without problems.

    You were write . I changed the doctype and my problem is now fixed. Thanks.

    #48712
    pab
    Member

    you also end up fixing IE4 IE5 by doing the text-align center on the body and text align left on the wrap

    that being said who still codes for IE4 & IE5

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.