Jump to content

CSS if !IE lte 8


Caitlin-havener

Recommended Posts

How do I get rid of some css if the user is viewing page in IE version 8 or less? See my page: havener.meI do not want the background-image of the body or the box shadow of div.rounded if viewing in IE lte 8

Link to comment
Share on other sites

You could just override them with a stylesheet targeting IE8 and below with a conditional comment:

<!--[if lte IE 8]>   <style>	  body { background-image:none; }   </style><![endif]-->

Don't worry about getting rid of CSS3 properties for IE8 and below. It won't recognize most of CSS3 anyway, so there's nothing to eliminate.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...