Is it possible to have transparent or non-transparent font with different color outline with just HTML5 and CCS3? How?
Asked
Active
Viewed 1,782 times
0
-
Ok. I just found few google webfonts. One is http://www.google.com/fonts/specimen/Londrina+Shadow. Still, can I do it with default fonts? – MeetM Aug 05 '13 at 20:03
-
1possible duplicate of [Outline effect to text](http://stackoverflow.com/questions/4919076/outline-effect-to-text) – SLaks Aug 05 '13 at 20:06
2 Answers
2
You're looking for the text-stroke
property, which does exactly that.
Beware that it's only supported by WebKit.
You can also fake it with text-shadow
.
0
Using the text-shadow property it is possible:
EDIT: Now it's uniform. Play around with the values to achieve different results.
span {
color:white;
text-shadow: -1px 0 black, 0 1px black,
1px 0 black, 0 -1px black;
}

General_Twyckenham
- 2,161
- 2
- 21
- 36