Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

CSS3 Technique for White-Outlined, Red Text

CSS3 Technique for White-Outlined, Red Text

Problem

I'm not associated in any form with the following page:

http://www.wpsyndicator.com/

However, as you can see on that page, they used images to show the white-outlined, shadowed, red text. Is there a way in CSS3 to implement this feature? I mean, I can handle the shadow and the red, but the white font outlining is not something I'm familiar with.

Problem courtesy of: Volomike

Solution

You are looking for text-stroke.

-webkit-text-stroke: 1px white;

It is only supported by the web-kit for now, you can see the compatibility list here http://caniuse.com/text-stroke

More Info:

http://css-tricks.com/adding-stroke-to-web-text/

http://www.webkit.org/blog/85/introducing-text-stroke/

Here is an example from David: http://jsfiddle.net/davidThomas/h5J6K/2/

Solution courtesy of: Etienne Dupuis

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

CSS3 Technique for White-Outlined, Red Text

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×