Forums

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

Home Forums CSS Width problem in IE

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #38866
    Anonymous
    Inactive

    Hi,
    i want to set my page width to 980px (for 1024×768 resu.)
    i use this codes in css:

    body
    {
    margin: 0 auto;
    width: 980px;
    color:#333333;
    }

    but i think IE browser set width more than what i certain.
    like this:

    chrome (correct) :http://up.birfun.com/uploads/13420064051.jpg
    IE(incorrect):http://up.birfun.com/uploads/13420064072.jpg

    #105878
    simoncmason
    Member

    Is your set to width:100% and have you got a reset. css or normalize.css in your stylesheet?

    It looks like it should be OK but (assuming you are also writing the HTML) you could add in a div id=”main-wrap” to contain everything else and change the css to:

    body {width:100%}
    #main-wrap {width:980px; margin 0 auto; color:#333;}

    #105871
    Senff
    Participant

    We’d have to see the site (or the full code) to figure out what’s causing this, so unless you can share that, we can only take guesses….

    #105887
    Anonymous
    Inactive

    i found the problem, my IE browser’s zoom is 120%, i returned it to 100% and problem fixed.

    but i’m realy thanks you mr.simoncmason and senff.

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