Share this Page URL

Chapter 15. Sheet Music: Styles for Font... > Textstyles: More Ways to Format Text - Pg. 171

Sheet Music: Styles for Fonts, Colors, and Backgrounds font-style: oblique 171 Textstyles: More Ways to Format Text Besides fiddling with fonts, style sheets offer a few other ways to format your page text. This section looks at four of them: indentation, alignment, underlining, and casing. Indenting the First Line of a Paragraph Many professionally typeset pages indent the beginning of each paragraph. The only way to do that in regular HTML is to string together a series of nonbreaking spaces (&nbsp;) at the start of each paragraph. With style sheets, however, it's no sweat because you just use the text-indent style. For example, the following page (see ssindent.htm on the CD in this book) includes a style sheet that tells the browser to indent the first line of every paragraph by half an inch, as shown in Figure 15.5. <HTML> <HEAD> <TITLE>Style Sheets: Text Indents</TITLE> <STYLE TYPE="text/css"> <!-- P {text-indent: 0.5in} --> </STYLE> </HEAD> <BODY> <H3>Textstyles: More Ways to Format Text</H3>