ABSTRACT

In addition to typefaces and fonts, various other factors play a role in shaping the look of text in design. These include alignment, indentation, spacing, capitalization, directionality, and decoration. This chapter presents the Cascading Style Sheet properties used to control these factors. The text-decoration property is a non-inherited shorthand property used to specify the text formatting or the decoration to apply to a text. The longhand properties are text-­decoration-line, text-­decoration-style, and text-­decoration-color. The styles produced by the text-decoration properties carry no semantics and are not recognized by the browser. The text-decoration-skip property is inherited and used to specify which parts of an element's content the text decoration line affecting it must skip. The text-underline-position property specifies the position of an underline specified on the same element using the text-decoration property. The text-shadow property is inherited and used to add shadows to the text. It takes comma-separated sets of values, each of which specifies the settings for a shadow.