0

Is it possible to have transparent or non-transparent font with different color outline with just HTML5 and CCS3? How?

MeetM
  • 1,410
  • 17
  • 25
  • 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
  • 1
    possible duplicate of [Outline effect to text](http://stackoverflow.com/questions/4919076/outline-effect-to-text) – SLaks Aug 05 '13 at 20:06

2 Answers2

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.

Community
  • 1
  • 1
SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
0

Using the text-shadow property it is possible:

EDIT: Now it's uniform. Play around with the values to achieve different results.

http://jsfiddle.net/qE2ev/1/

span {
    color:white;
  text-shadow: -1px 0 black, 0 1px black,
  1px 0 black, 0 -1px black;
}
General_Twyckenham
  • 2,161
  • 2
  • 21
  • 36