I tried adding text-shadow to create a smooth font effect on some of my larger texts. It looks amazing in Firefox, but I just tested in Chrome, Safari and IE and it looks horrible.
Here is what I have:
text-shadow: 0px 0px 1px rgba(205,10,17,.8);
Looks awesome in Firefox, but either doesn’t exist or goes to **** in every other browser.
Any suggestions on how to make the look Firefox is creating more cross-browser compatible?
There’s not much you can do about it as that’s the way it has been implemented in those browsers. To my mind Chrome/safari (PC) look better than the Firefox version which looks slightly blurred and more like 2px than 1px. I expect there will be similar differences on the MAC system also as text always looks different there.
IE9 has no support for text-shadow but will be available in IE10 (don’t be tempted to use the IE filters as they do more harm than good).
Thanks for response. Yeah, I read that IE10 will have text-shadow working, so figured none of that filter nonsense.
The odd part is that Safari/Chrome look like there is no shadow at all. If I removed text-shadow entirely the text looks the same in Safari/Chrome. Like something is interfering with the attribute.
I’ve attached two screenshots. One shows how the texts look in Firefox (smooth), and how they look in Chrome/Safari (not so smooth)
If I blow those screenshots up 800% I can see the shadow in Chrome but it is much fainter but definitely there. Maybe you could try a slightly darker shadow and see if it makes a difference. Is this a PC or mac screenshot?
It may help if you post all the relevant css and html so we can replicate that effect exactly with colours and backgrounds etc.
Also, changing the text-shadow to 0px 0px 1px rgba(205,10,17,1) (so no transparency at all) made a huge difference. Definitely smoother now. But it does look a bit thick in Firefox now.
The differences look more to me like the weights of the fonts than a problem with text-shadow itself.
Firefox does render a heavier weight than others I’ve seen.
Okay, I added webkit text stroke to make Chrome/Safari look cleaner and it worked. Though differently in both Chrome and Safari, both saw improvements in smoothness.
-webkit-text-stroke:.2px #CD3421 !important;
The color I chose was because the glow is typically on top of that green, so I saw what the #CD0A11 would become #CD3421 with 80% opacity on the green. So simulated the transparency effect a bit with the help of photoshop.
It’s still a bit short of Firefox’s ability to render the font, but close enough.