0
I have a small doubt, how do I hide a div (.laser) only in IE8?
Preferably would like to use only CSS or also JS
0
I have a small doubt, how do I hide a div (.laser) only in IE8?
Preferably would like to use only CSS or also JS
2
Create a file .css
called, for example, ie.css
. Make your call 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 to IE 8 or earlier versions.
If you want to reach other versions of IE or a range of them, this is an excellent reference.
Browser other questions tagged javascript jquery html css internet-explorer-8
You are not signed in. Login or sign up in order to post.
This example works for all of the above 8. If they were all Ies, the condition would be
<!--[if IE]>
– Caio Felipe Pereira
You’re right, sorry for the lack of attention, I’ve removed the comment
– João Victor Gomes Moreira
@Caiofelipepereira thank you very much!! it worked here. Maybe you take me another doubt, how would you run the radios in IE8 - sorry that other question more you seem to master cross browser, rs!! v
– user36373
@Davivoltas, if you have another question, ask a new one. This way, the information is better distributed, making it easier for others who may have the same doubts as you.
– Caio Felipe Pereira