line-heightSets the height of the lines of text in an element. Value | Description | size | px - size in terms of pixels
em - size in terms of the current font size
in - size in terms of inches
cm - size in terms of centimeters | percentage | The width of this element will be a percentage of the element it is inside of. |
Code:p{ line-height: 400%; }
h5{ line-height: 12pt; font-size: 20pt;}
h6{ line-height: 15px; font-size: 20px;} Display:This paragraph has a line-height of 400%. This paragraph has a line-height of 400%. This paragraph has a line-height of 400%.
This h2 has a font-size of 20pt and a line-height of 12pt.
This h6 has a line-height of 15px and a font-size of 20px. This h6 has a line-height of 15px and a font-size of 20px. This h6 has a line-height of 15px and a font-size of 20px. |