Lars Tackmann Lars Tackmann - 1 year ago 102
CSS Question

CSS Font Border?

With all the new CSS3 border stuff going on (-webkit...) is it now possible to add a border to your font ? (like the solid white border around the blue Twitter logo). If not, are there any not-to-ugly hacks that will accomplish this in CSS/XHTML or do I still need to fire up Photoshop

Answer Source

The right answer is:

h1 {
    color: yellow;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
<h1>Hello World</h1>

This will set four same type shadows from the four sides.