4 ms·
Try using a text-shadow: 0 0 1px rgba(0, 0, 0, 0.01); for the text. It makes the text prettier in some browsers, like chrome, by faking anti-aliasing. Exa
by maushu 16y ago
Try using a
text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
for the text.
It makes the text prettier in some browsers, like chrome, by faking anti-aliasing.
Example: http://www.graphnode.com/stuff/text-shadow.png http://www.graphnode.com/stuff/text-shadow.png
- weirdcat 16y agoHa, looks neat! And with a little hacking it might work in other browsers as well. Isn't the shadow black though? It would mean that in my case it needs to be dynamically adjusted to the font color chosen by the user (probably by generating a fresh css snippet and applying it to the page). I'll definitely give it a try later -- these jagged edges in Windows made me cringe. :) Thanks a lot!
- maushu 16y agoChanging the color should not be needed (since the alpha is 0.01). Feel free to use other colors though.