Typography - Getting The Hang Of Typography

(lu) #1
1 p {

(^2) text-shadow: rgba( 0 , 0 , 0 , 0.5) 1px 1px 1px;
3 }
Here we define the R, G and B values of the color, plus an additional alpha
transparency value (hence the a, whose value here is 0.5).
The specification still has some open questions about text-shadow, like
how should the browser behave when the shadow of an element overlaps
the text of an adjoining element? Also, be aware that multiple text shadows
and the text-outline property may be dropped from the specification.


New Text-Decoration Properties


One problem with the text-underline property is that it gives us little
control. The latest draft of the specification, however, suggests new and
improved properties that may give us fine-grained control. You can՚t use
them yet, but we՚ll give you a condensed sneak peek at what may come.


text-decoration-line


Ta k e s t h e s a m e v a l u e s a s text-decoration: none, underline,


overline and line-through.


text-decoration-color
Specifies the color of the line of the previous property.


text-decoration-style
Ta k e s t h e v a l u e s o f solid, double, dotted, dashed and wave


text-decoration
The shorthand for the three preceding properties. If you specify a value of


only one of none, underline, overline or line-through, then

Free download pdf