22.06.2015 Views

Step by Step HTML5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Specifying Vertical Space within a Paragraph 137<br />

4. Save the file, and then refresh the Internet Explorer display.<br />

CLEAN UP Close the Notepad and Internet Explorer windows.<br />

Specifying Vertical Space within a Paragraph<br />

The line height is the amount of space between each line. This is also referred to as leading<br />

(pronounced like the metal). You can use this setting to make paragraphs easier to<br />

read. You are not limited to just single-spacing or double-spacing like on a typewriter;<br />

you can specify any amount of space you like.<br />

You can express line height either as a number or as a percentage. If you use a number,<br />

it’s a fixed measurement (usually in pixels). If you later increase or decrease the font size,<br />

the line height will not change. If you use a percentage, the browser multiplies the line<br />

height percentage <strong>by</strong> the font size to derive a spacing amount. For example, you can<br />

specify 200 percent to make a paragraph double-spaced. If you later change the font<br />

size, the line height will be recalculated using the new font size. To specify the line height<br />

in a style sheet, set the line-height attribute, as follows:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!