This code results in the headlines shown in Figure 5-11:
You might want to avoid using the transformproperty for initial caps.
English punctuation usually avoids making prepositions and articles initial-
capped. Therefore, the words intoand theshould not be capitalized in the
headline shown at the top of Figure 5-11.
Shading with Drop-Shadowing ...................................................................
A drop shadowis black or gray shading around each letter that makes the let-
ters look as if they were casting shadows. It’s often a good way to add dimen-
sion and realism to images or text.
Some graphic and typographic effects are best left to graphics applications
like Photoshop. Those applications are dedicated to creating visual effects
more sophisticated and subtle than any that can easily be achieved via HTML
or CSS code. After all, graphics applications have tools that allow you to pre-
view the effects; to use the mouse to assist in designing and modifying the
effects; and to compare effects side-by-side. What’s more, the built-in effects
in a graphics application are carefully designed. For example, their drop-
shadow uses a gradient for the shadow rather than a solid, unnatural looking
black or gray. Put simply, leave the fancy visuals to applications that special-
ize in such things.
Figure 5-11:
You can use
the text-
transform
property to
specify cap-
italization.