Conditional Css Sample

by Annie Lagang

HTML

<div id="test">TESTING ONLY FOR IE</div>

CSS

.show
{
display:block;
<!--[if lt IE 8]>
display:inline;  
<![endif]-->
}

.hide
{
display:none;
}

JavaScript

$(function(){
    $('#test').addClass('hide');
});