What rule do you need to enable styling of disabled elements in IE8? I have the code below now. It that works fine under IE7, but not on IE8. IE8 just give me plaint wihte background. Why?
input[disabled], input:disabled, textarea[disabled], textarea[disabled="disabled"], textarea:disabled {
background:#EBEBE4;
}
the :pseudo class in the selector is tripping up IE8!
you have to ungroup these selectors if you absolutely have to use those CSS3 pseudo classes;
If there’s a selector in the ruleset that IE8 doesn’t understand it’s ignoring the whole thing – this is common in IE8 with CSS3 pseudo classes
e.g. If you separate them out and remove the pseudo
:disabledparts of the selector completely – you’ll see the first example below works for all, whereas the second one still works except for IE7the color (as opposed to background-color) issue pointed at in another answer is not the cause of your issue, but it wouldn’t help if you were also trying to change the color 😉