Вау. Да, не делай этого. Вы захотите использовать условные комментарии, чтобы включить нужный вам CSS. Ваш первый комментатор Бендевей показал, как вы можете легко ориентироваться на IE7. Есть и другие типы условных комментариев, которые позволят вам ориентироваться на другие версии IE.
Вот они:
<!--[if IE]>
According to the conditional comment this is Internet Explorer
<![endif]-->
<!--[if IE 5]>
According to the conditional comment this is Internet Explorer 5
<![endif]-->
<!--[if IE 5.0]>
According to the conditional comment this is Internet Explorer 5.0
<![endif]-->
<!--[if IE 5.5]>
According to the conditional comment this is Internet Explorer 5.5
<![endif]-->
<!--[if IE 6]>
According to the conditional comment this is Internet Explorer 6
<![endif]-->
<!--[if IE 7]>
According to the conditional comment this is Internet Explorer 7
<![endif]-->
<!--[if gte IE 5]>
According to the conditional comment this is Internet Explorer 5 and up
<![endif]-->
<!--[if lt IE 6]>
According to the conditional comment this is Internet Explorer lower than 6
<![endif]-->
<!--[if lte IE 5.5]>
According to the conditional comment this is Internet Explorer lower or equal to 5.5
<![endif]-->
<!--[if gt IE 6]>
According to the conditional comment this is Internet Explorer greater than 6
<![endif]-->
Если вы планируете внести множество корректировок для разных версий IE, вы можете планировать заранее и использовать трюк "body class". Это выглядит некрасиво в разметке, но это проверенная техника, и иногда это лучше, чем иметь множество таблиц стилей и тегов стилей.
Вот оно:
<!--[if !IE]>--><body><!--<![endif]-->
<!--[if IE 6]><body class="ie6"><![endif]-->
<!--[if IE 7]><body class="ie7"><![endif]-->
<!--[if IE 8]><body class="ie8"><![endif]-->
И в вашей таблице стилей вы просто сбросите любой стиль, который хотите, прикрепив класс к селектору. Как это:
#some_div {
margin-top:30px;
}
.ie6 #some_div {
margin-top:40px;
}
.ie7 #some_div {
margin-top:50px;
}
Надеюсь, это имеет смысл. В любом случае, вы должны использовать условные комментарии вместо PHP.