• Resolved cfaria

    (@cfaria)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter cfaria

    (@cfaria)

    Thanks for your help. It worked!

    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!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Main content width displays fine in Firefox by not IE’ is closed to new replies.