Web Design

(Nancy Kaufman) #1

114


Apply Additional Text Formatting ............................


5 Type text-transform:
?;, replacing? with
uppercase, lowercase,
or capitalize.


6 Press.


7 Type }.


1 In your editor, open a
document that contains
an embedded style sheet.


2 Within the style sheet,
type h1.


3 Press.


4 Type {.


Apply Additional Text Formatting


I


n addition to setting the font and color, you can also control additional text properties including
line height and capitalization. The CSS line-height property is the distance from the bottom

or baseline of one line of text to the baseline of the next line. Adjusting the line-height can


help improve readability by spacing out the text, but be careful to not add so much that you begin


to have the opposite effect. The transform property, which accepts values of uppercase,


lowercase, and capitalize, allows you to control the capitalization of text, which is


particularly helpful with headings.


1


4


5


2


7

Free download pdf