Title: IE 6 Conditional
Last modified: August 19, 2016

---

# IE 6 Conditional

 *  [audiorodeo](https://wordpress.org/support/users/audiorodeo/)
 * (@audiorodeo)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/ie-6-conditional/)
 * 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)

 *  [justin01](https://wordpress.org/support/users/justin01/)
 * (@justin01)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/ie-6-conditional/#post-984267)
 * 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](https://wordpress.org/support/users/audiorodeo/)
 * (@audiorodeo)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/ie-6-conditional/#post-984357)
 * 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](http://ipinfo.info/netrenderer/)
 * if there’s any chance u have time to [visit the site](http://www.audiorodeo.com),
   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](https://wordpress.org/support/users/audiorodeo/)
 * (@audiorodeo)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/ie-6-conditional/#post-984390)
 * 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.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [IE6](https://wordpress.org/support/topic-tag/ie6/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [audiorodeo](https://wordpress.org/support/users/audiorodeo/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/ie-6-conditional/#post-984390)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
