CSS1 Test Suite: 5.4.8 line-height


[Previous] [Next] [Section] [Contents] [Specification]
Last Updated: 1 September 1998

The style declarations which apply to the text below are:

.one {line-height: 0.5in; font-size: 14px;}
.two {line-height: 2cm; font-size: 14px;}
.three {line-height: 20mm; font-size: 14px;}
.four {line-height: 24pt; font-size: 14px;}
.five {line-height: 2pc; font-size: 14px;}
.six {line-height: 2em; font-size: 14px;}
.seven {line-height: 3ex; font-size: 14px;}
.eight {line-height: 200%; font-size: 14px;}
.nine {line-height: 2; font-size: 14px;}
.ten {line-height: 50px; font-size: 14px;}
.eleven {line-height: -1em; font-size: 14px;}
TABLE .ten {line-height: normal; font-size: 14px;}


This sentence should have a line-height of half an inch, which will cause extra spacing between the lines.

This sentence should have a line-height of two centimeters, which will cause extra spacing between the lines.

This sentence should have a line-height of twenty millimeters, which will cause extra spacing between the lines.

This sentence should have a line-height of twenty-four points, which will cause extra spacing between the lines.

This sentence should have a line-height of two picas, which will cause extra spacing between the lines.

This sentence should have a line-height of two em, which will cause extra spacing between the lines.

This sentence should have a line-height of three ex, which will cause extra spacing between the lines.

This sentence should have a line-height of twice the font size, which will cause extra spacing between the lines.

This sentence should have a line-height of twice the font size, which will cause extra spacing between the lines.

This paragraph should have a line-height of 50 pixels in the first section, which will cause extra spacing between the lines. In the second section (within the table) its line-height should be normal.

This sentence should have a normal line-height, because negative values are not permitted for this property.

This sentence should have a line-height of half an inch, which will cause extra spacing between the lines.

This sentence should have a line-height of two centimeters, which will cause extra spacing between the lines.

This sentence should have a line-height of twenty millimeters, which will cause extra spacing between the lines.

This sentence should have a line-height of twenty-four points, which will cause extra spacing between the lines.

This sentence should have a line-height of two picas, which will cause extra spacing between the lines.

This sentence should have a line-height of two em, which will cause extra spacing between the lines.

This sentence should have a line-height of three ex, which will cause extra spacing between the lines.

This sentence should have a line-height of twice the font size, which will cause extra spacing between the lines.

This sentence should have a line-height of twice the font size, which will cause extra spacing between the lines.

This paragraph should have a line-height of 50 pixels in the first section, which will cause extra spacing between the lines. In the second section (within the table) its line-height should be normal.

This sentence should have a normal line-height, because negative values are not permitted for this property.


[Previous] [Next] [Section] [Contents] [Specification]