Currently, I am facing an issue with implementing the text-shadow
property across different browsers. IE6, IE7, FF, Chrome, and Opera are all displaying the shadows correctly, except for IE8 which only shows them in 'Compatibility View'.
I have tried various solutions found through search engines like Google, but the shadow persists in appearing only when in 'Compatibility View'.
Does anyone have any suggestions on how to make it show up without having to switch modes?
Note: I am using HTML5 Boilerplate and Modernizr.
edit: I forgot to mention that I am also using Modernizr, and upon further testing, the shadow is not displaying in IE9 as well, though I don't believe this issue is related.
CSS:
#links li a {
font-size: 24px;
text-shadow: 0 3px 3px #102530, 0 3px 3px #102530;
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=90, Color='#102530')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=90, Color='#102530');
filter:DropShadow(Color=#102530, OffX=0, OffY=3);
zoom: 1;
}
HTML
<ul id="links">
<li><a href="#"/>Text</a></li>
</ul>