I am trying the following CSS hack for IE8 and below:
.class {
background-color: #BFBFBF;
width: 1154px;
width: 930px \9;
}
But this CSS hack is affecting IE9 also.
Could you please help me to apply this width attribute only for IE8 and below?
The other answers are better answers - you should be using conditional comments. But to answer your question as to why what you're doing isn't working, try
width: 930px\9;
Without the space.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With