Possibly save IE7 hack

I recommend that before using any of these hacks that you look at this page and also google the older blog page by David Hammond.

ordinary style

*+*+.test2 - target IE 7 only


<div>
<p class="test1"></p>
<!-- wow -->
<p class="test2"><code>*+*+.test2</code> - target IE 7 only</p>
</div>
 

div p {background:#6ea}
*+*+.test2 {background:#f88}


*+.test3 - target IE 7 only


<div>
<!-- wow -->
<p class="test3"><code>*+.test3</code> - target IE 7 only</p>
</div>
 

div p {background:#6ea}
*+.test3 {background:#f88}


  1. CSS hacks
  2. Internet Explorer and the CSS box model
  3. Writing cross-browser CSS
  4. prepared for IE7 - feeding separate styles to Internet Explorer with the @import hack

CSS Class test