How to hide a 'div" in jquery for ie8?

http://neeyamo.com/

the above website displays hidden layouts in ie8. Which are meant to display only in low screen resolution. i used "display:none" using css media query. It works fine in other browsers. But in IE8, it does not work.

Answers


may be you can use $("#idofdiv").hide() in jquery in document.ready()


Css media queries are not supported by IE8 but there are ways to get around IE7, IE8 support for css3 media query


Try something like

<!--[if lte IE 8]>
<style type="text/css" media="screen">
/*
.yourclass { display: none; }
</style>
<![endif]-->

Need Your Help

ASP.net linkbutton 'onclick' does not trigger if it is used as an AsyncPostBackTrigger trigger in UpdatePanel

javascript c# asp.net ajax updateprogress

I was hoping someone can help me in this odd behavior of asp.net. I have an UpdatePanel control with two linkbutton as triggers. The triggers work fine individually. But when I have a function that...

How do get Aurelia to render my view after dynamically adding a custom element to the DOM?

javascript dom aurelia aurelia-binding

When creating a custom element in the DOM and adding a respective view model which implements bindable from the aurelia-framework, my view renders perfectly.