Due to some reason the application was designed to force the IE 7 rendering engine in IE 8+, using below META Tag
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
I want to apply some IE 7 specific styles like below.
<!--[if lte IE 7]>
<style type="text/css">
#myElement
{
padding-bottom:49.00% !important;
}
</style>
<![endif]-->
I am opening the site in IE 8
and it emulates to IE 7 mode, but my styles are not getting applied here.
How do i detect IE 7 Emulate mode here? using jQuery(1.4.1) also welcome.
Note: The application was designed long time back, it is in maintanance mode. So not possible to upgrade jQuery version
Update: Finally I used
navigator.appVersion.indexOf("Trident")!=-1
&& document.documentMode==7