You can easily create the beveled text effect using CSS. Although you may wonder why learn a new technique to create the beveled text effect when you can easily do it in an image editing software, the advantage of using CSS is that once you have defined a class, you can invoke the effect wherever you want to.
There is no dedicated style attribute in CSS that creates the bevel effect but you can use the CSS text shadow effect to attain the same. You just need to choose the right colors.
For better effect, chose a darker shade of background for the beveled effect because then you can see it clearly. For instance this looks fine:
But if you choose a very light background, the bevel effect will not look as good:
So it’s all about what color you choose. Getting back to creating the beveled text effect with CSS, the following definition does the trick (the better one among the above examples):
text-shadow: 0px 1px 0px #C8D0E7;
And this is how we use it:
It’s basically using the color of the shadow, and then strategically placing it in such a manner that it creates the bevel effect. In this effect the text should either appear raised or engraved. In our case we’re raising the text. So over a dark background we’ve used a lighter color shadow under a darker text. This gives you the desired beveled text effect. You can keep changing the CSS color values according to your need.