Is there any way to give text this beveled look with only CSS?
To be clear, I'm looking for text that has thickness, but in a beveled way. Not, for example, what you get with text-shadow, which seems to just extend the edges of the font.
Is there any way to give text this beveled look with only CSS?
To be clear, I'm looking for text that has thickness, but in a beveled way. Not, for example, what you get with text-shadow, which seems to just extend the edges of the font.
In my experience, you cannot. The closest thing I've ever seen is the inset text-shadow trick mentioned in the comments and I haven't seen anything online that answers this either.
I'm assuming that SEO and accessibility are the reasons to keep this strictly as an HTML/CSS separation, though. This effect may be able to be accomplished via an img tag with a corresponding alt attribute (simple solution) or by using SVG (for selectable and scalable text) with the appropriate fallback(s). Also, if you're looking for flowing/wrapping text, SVG might be able to handle that as well. Check this answer for more details: Auto line-wrapping in SVG text
Here, play around with the numbers until you get a satisfying result.
.inset {
color: rgba(10,60,150, 0.8);
text-shadow: 3px 4px 6px #def, 0 0 0 #000, 1px 4px 6px #def;
}