views:

275

answers:

2

Very Simple Question but I am finding it hard to get a good answer

If I wanted to remove certain divs when IE8 is used to view my webpage how would I do this ?

could you give me a coded example please.

Thanks

+5  A: 

You can use conditional comments like this:

<!--[if !IE 8]>
    <div></div>
<![endif]-->
Greg
+1  A: 

Hi there,

the need of conditional comments in IE8 is very small.

Maybe you want to get in touch with "Reset Stylesheets"

In Addition to that question i want to provide some of my questions since they belong to same type of topic:

http://stackoverflow.com/questions/1356665/will-conditional-comments-always-be-needed

http://stackoverflow.com/questions/1346094/collection-of-browser-characteristics

bastianneu