Reputation: 15369
I found this solution for making an embossed effect with text. Is this really the best way. Any new ideas on it. It just makes it impossible to work with if you have to add additional span tags to get the kerning right. I guess it adds extra nodes and messes up the pseudo selectors.
Upvotes: 2
Views: 2684
Reputation: 656
You can use text shadow.
text-shadow{0px 1px 0px #fff, 0px -1px 0px #000}
This wont work in IE anything earlier than IE9 though.
Upvotes: 3
Reputation: 253416
It's not, necessarily, cross-browser friendly, but there's always text-shadow, to emulate the embossed style.
h1.embossed {
text-shadow: 1px 1px 2px #fff;
}
Upvotes: 1