Forums

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

Home Forums CSS [Solved] Internet Explorer and CSS

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27485
    kb2tfa
    Member

    I created a site with wordpress as a backend. It looks exactly the way I want in my Firefox (linux).

    However it’s not right in IE.

    Displayed correctly, my content is centered by means of a div "wrap" that wraps the entire site, using left and right margin to auto.

    In IE, it doesn’t center, it butts the content to the left. Does IE not recognize margin: auto?
    For brevity, only layout parts of CSS are listed

    Link to live http://ronguilmet.com/sandbox/

    Code:
    /* GLOBAL RESET */

    * {margin: 0; padding: 0;}

    body
    {
    /* */
    background-color: #F6C21E;
    }

    /* WRAPS WHOLE SITE */

    #wrap
    {
    width: 700px;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    }
    /* CONTENT DISPLAY */

    .entry
    {
    padding: 20px;
    }
    #content
    {
    margin: 10px;
    clear: both;
    }

    #69086
    TheDoc
    Member

    Odd. Try changing the margin on the wrap to:

    margin: 0 auto;

    #69089
    kb2tfa
    Member

    yes it is odd to say the least, lol. it’s got me scratching my head.

    I made those changes to the wrap, and still no change. checked the rendering at http://ipinfo.info/netrenderer/index.php.

    works fine on my firefox, and google chrome

    #69093
    kb2tfa
    Member

    Thank you so very much.

    that’s exactly what it was. I had the html tag above the doctype
    I had

    Code:

    Moved it above it, and it works. thank you again.

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