I have a website that uses various CSS3 styles which has only really been tested in Firefox 10. I need some way to simulate various CSS styles which are not natively supported when viewed in IE8:
- box shadow
- text shadow
- background gradient
- round corner
- opacity
I've tried using css3pie, but when I included the .htc file it produced some unpleasant side-effects. I know there are jQuery plugins that can add box shadows and round corners to elements in IE8, so I'm considering using these inside a conditional code-block, e.g.
if ($.browser == 'msie' && $.browser.version.split('.')[0] < 9) {
// call JQuery plugins to apply box shadows, round corners, etc.
}
I realise that this is somewhat brittle because I'm using browser detection rather than feature detection, but I can't find a way to detect features like the ability to round corners using jQuery.support.
Secondly, I'm only aware of jQuery plugins that can simulate some of the CSS3 properties (box shadow and round corners), are there others for background gradient, opacity and text shadows?
Finally, if there's a completely different way to achieve my goal, then please feel free to suggest an alternative.