12

Possible Duplicate:
CSS Font Border?

Is it possible to set a 'text-border' with CSS?

Best would be to have multiple borders? something like on the image

enter image description here

Community
  • 1
  • 1
Tomas Jancik
  • 1,471
  • 2
  • 12
  • 18

3 Answers3

21

Well you could try a font shadow. Something with multiple borders might have to be done with an image though.

           text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
AgnosticDev
  • 1,843
  • 2
  • 20
  • 36
3

I think you may want to take a look at CSS text-shadow

http://www.quirksmode.org/css/textshadow.html

You cannot achieve multiple borders but you can do some amazing things with it:

http://line25.com/articles/using-css-text-shadow-to-create-cool-text-effects

(i love that neon effect :)

Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
-1

You could simulate stroked text as in this previous answer:-

Outline effect to text

Community
  • 1
  • 1
Mat Richardson
  • 3,576
  • 4
  • 31
  • 56