Possible Duplicate:
CSS Font Border?
When I'm in Photoshop, it's easy for me to type a text and then apply white border to the 'text' and then apply shadow into it.
But when I'm in HTML, I need a <div>
, <p>
or <span>
or any tag like this to write a text. Then to decorate the text like this, we especially apply the decoration to the tag, NOT TO THE TEXT (or content) of the tag. Suppose:
<span id="decor">Text</span>
Then we do CSS like:
#decor{color: #9E0B0E; border: 5px solid #FFF; box-shadow: 3px 0 2px #CCC;}
But what it does is to style the span, not the content of the span tag (for here: 'Text').
So, my question is:
- HOW TO STYLE TEXT LIKE THIS USING
CSS
?
SECOND EDIT
After some comments and replies, PLEASE CONSIDER THAT, The text-shadow
property is doing only one job, whether a white border or a grey shadow, but I want 'em BOTH.