static: The default. The top, right,
bottom, and left properties do not affect
the element if this value is set. The
element is not removed from the
document??™s normal flow.
Various examples of this property in use
are found in Chapters 5 and 7.
absolute | fixed |
relative | static
CSS REFERENCE
487
D
Property Values Description Inherited
text-align Yes
text-decoration No
text-indent length | percentage Yes
text-transform Yes
top No Determines the vertical offset of the
element??™s top edge from the top edge of
its parent element if the parent is
positioned; if not, then offset is determined
from the first positioned ancestor. Must be
used with a position value of relative,
absolute, or fixed.
See also the Chapter 7 exercise, ???Using
absolute positioning to center a box
onscreen.???
auto | length |
percentage
Sets the case of an element??™s text.
See also Chapter 3, ???Controlling case with
text-transform.???
capitalize |
lowercase |
none | uppercase
Sets the horizontal indent of an element??™s
first line of text. Defaults to 0.
Adds decoration to text. Values may be
combined in a space-separated list, and
the default depends on the element in
question.
Note that browsers may ignore blink but
still be considered compliant. Examples:
text-decoration: underline;
text decoration: underline
?? line-through;
See also Chapter 5, ???Editing link styles
using CSS.???
blink | linethrough
| none |
overline |
underline
Sets the text alignment for an element.
Pages:
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574