Hostingheaderbarlogoj
Join InMotion Hosting for $3.49/mo & get a year on Tuts+ FREE (worth $180). Start today.
Advertisement

Quick Tip: How to Target IE6 and IE7 with Only Two Characters

by

Did you know that, with the addition of only two characters, you can target both Internet Explorer 6 and 7 in your stylesheets? It's easy...I'll show you!


At a Glance

#someElement {
   background: red; /* modern browsers */
   *background: green; /* IE 7 and below */
   _background: yellow; /* IE6 exclusively */
}
Advertisement