The text-shadow CSS property is now pretty well supported among modern browsers and it can be used to create a faux letterpress (embossed) effect using plain html. You no longer have to create a graphic to achieve shadows.
Shadow TextThe above shadow is coded <h1 style=”text-shadow: 5px 5px 4px #666;”>Shadow Text</h1>. The text-shadow property takes 4 values — horizontal offset — vertical offset — shadow radius — shadow color. Positive values for the horizontal and vertical offsets move the shadow to the right and down. Negative values move the opposite direction. Letterpress EffectWe can achieve a faux letterpress effect using the following: The shadow (white) is two pixels below the type, two pixels to the right and has a blur radius of two pixels. Letterpress EffectHere is another variation: The shadow (#ffffff = white) and appears 1 pixel below the type and has a blur radius of 1–which is not very blurry at all. Letterpress EffectFinally, we can chain several text-shadow renderings together to further the effect: Notice in the code, we are simply adding a comma between each set of shadow properties. The key to this is using small values and hues that are in the same color range as the background. There is a bunch of things you can do with text-shadow using different values and colors chained together to get other effects. Not very letterpress like, but impressive. This code: Fire Next Time |
-
Recent Posts
Pages
Categories
Search Leads and Slugs
Meta
