• hi,
    i realized the blog i created has some problem in ie6

    I think this is probably the code i should add: (as the problem is probably created by a float and margin situation)

    <!-- [if lt IE 7]>
    
    #main-content { margin: 0px 0px 0px 145px; }
    
    <![endif]-->

    but i dont get where i add it.
    in the css? in the index php ?

    please help
    thx

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey,

    I recommend you to add it in the <head> of your theme’s “header.php” file.

    Like this:

    <style type="text/css">
    
    <!-- [if lt IE 7]>
    
    #main-content { margin: 0px 0px 0px 145px; }
    
    <![endif]-->
    
    </style>

    Cheers.

    Justin

    Thread Starter audiorodeo

    (@audiorodeo)

    Thx Justin,

    Unfortunately it didnt solve my problem.
    I mean i think i put it in the right place but it didn’t prevent the page from messing up in ie6, according to netrenderer

    if there’s any chance u have time to visit the site, and an idea which conditional rule will solve my big problem – where the main content runs to the right instead of standing below the header (i am not even going to mess with the small problems for this site and ie6 i think)- it would be of great help.

    Thread Starter audiorodeo

    (@audiorodeo)

    update:

    i was able to get closer to a solution with entering this:

    <!--[if IE 6]>
    <style type="text/css">
    #main-content { margin: 0px 0px 0px 72.5px; }
    #sidebar { margin: 0px 0px 0px 72.5px;}
    </style>
    <![endif]-->

    where you said.
    i do have a problem with 1pixel off.

    i beleive it’s due to my 145 odd number of margin which i gave my maincontentet, sidebar etc.

    is there a way to get rid of that margin but still have things lining up beneath one another in the center same way it looks now (in firefox chrome etc)?

    (sorry i am very new to all of this)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘IE 6 Conditional’ is closed to new replies.