basically I'd like to know if this code is ok
<body id="some_id" <!--[if lt IE 7 ]>class="ie6"<![endif]--> >
</body>
basically I'd like to know if this code is ok
<body id="some_id" <!--[if lt IE 7 ]>class="ie6"<![endif]--> >
</body>
No. HTML comments can't be inside a tag. Try:
<!--[if gte IE 7]<!--> <body id="some_id"> <!--<![endif]-->
<!--[if lt IE 7]> <body id="some_id" class="ie6"> <![endif]-->
No, and it's not necessary. Always give the class to the body element and leave the CSS .ie
definition empty for all browsers but IE6:
.ie6 {
<!--[if lt IE 7]-->
... ugly ie6 hack ...
<!--[endif]-->
}
</style>
<body class="ie6">