Line Height

We set the spacing between individual lines of text using the line-height property, which sets the height of each line and thus changes the spacing between lines of text.

For example:

p {
	font-size: 12px;
	line-height: 20px;
}

This sets the font size to 12 pixels and the line height to 20 pixels. As a result, there will be 8 pixels of space between the text on one line and the text on the line below it within the paragraph.

Instructions

Set the line height to 22 pixels for the paragraphs (p).

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

5/9

Line Height | Start Coder