Hide DIV only in IE8

0

I have a small question, how do I hide a div (.laser) only in IE8?

Preferably I would like to use only CSS or also JS

    
asked by anonymous 15.04.2016 / 15:35

1 answer

2

Create a .css file called, for example, ie.css . Make the call to it in the header of your page / site / application as follows:

<!--[if lte IE 8]>
    <link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->

Inside it, just hide the div as you normally would:

.laser{
    display: none;
}

All rules within this file will apply only in versions of IE 8 or earlier.

If you want to reach other versions of IE or a range of them, here is an excellent reference .

    
15.04.2016 / 15:52