|With CSS, the height of a text line can be changed using the line-height
Start off by placing the following code in the head section of you page.(between and )Code:
To use the style, place the following wherever you would like to use it.
text goes here
Notice that the height between lines are larger above. The line height can also be smaller than the size of the font, however, this makes the text hard to read because the text will overlap each other.Possible Values
Other values besides pt can be used.
number- Sets a number that will be multiplied with the current
font-size to set the distance between the lines. (ex. 12.1)
%- Sets a distance between the lines in % of the current font size (ex. 120%)