I have the following code in css:
<!--[if IE 7]>
<style type="text/css">.slider li .slider-content{margin-left:-605px;}</style>
<![endif]-->
<!--[if gte IE 8]>
<style type="text/css">.slider li .slider-content{margin-left:-630px;}</style>
<![endif]-->
I am testing in IE9, when i choose IE8 Standards mode and look in the Internet developer tools i see that the margin-left: -605px (instead of -630px)
Can you think of any reason why this code in IE8 mode would use the IE7 settings?
The browser version is determined by the Browser Mode setting, not the Document Mode setting.
If you choose Browser Mode “IE 7” and Document Mode “IE 8 Standards”, it will use IE 7 to determine the conditional code.