WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Main content width displays fine in Firefox by not IE (4 posts)

  1. cfaria
    Member
    Posted 5 years ago #

    Hi there,

    I want to increase the width of the main content on the site I'm currently working on: http://www.benweek.org.uk

    In the main stylesheet I've edited the following and increased the width to 510px

    #main {
    margin:0;
    padding:0;
    width:510px;
    text-align:left;
    float:left;
    margin-left:15px;
    }

    This renders fine in Firefox, but makes no difference in IE. Can anyone point me in the right direction?

    Thanks for your help.

    Cass

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Open header.php and amend:

    <!--[if IE]>
        <style type="text/css">
            #main {width:450px;}
        </style>
    <![endif]-->

    to

    <!--[if IE]>
        <style type="text/css">
            #main {width:510px;}
        </style>
    <![endif]-->

    Or just delete that block completely. I can't see that it's doing much other than forcing you to make width edits in two places.

  3. cfaria
    Member
    Posted 5 years ago #

    Thanks for your help. It worked!

  4. bogrunberger
    Member
    Posted 5 years ago #

    Thank you so much. I had the exact same problem and it was driving me nuts! I completely missed that 'if IE' but now it works fine. Thank you man!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags