Home Blog Archive Internet HTML: line spacing using CSS to change – so it goes

HTML: line spacing using CSS to change – so it goes

  • Dec 11, 2025
  • 707
  • 0

In an HTML document, you can change by "style"specifying the line spacing. How you can solve this with the help of CSS, we will show you in this practical tip.

HTML: line spacing via CSS using "line-height" to change - so it goes

To change the line spacing via CSS, you should use the command "line-height". Hereby, it is possible, the line spacing as a percentage of the font size or as an absolute value:
  • With a percentage indication "line-height:120%" will increase the line spacing to 1.2 times the standard distance.
  • By a floating-point number, for example, "line-height:1.2", increase the line spacing is also a factor of 1.2.
  • You can height in addition to absolute values such as "line: 30px" use to set the line spacing fixed set.
HTML: line spacing via CSS change
As in the case of CSS images right in the insert, we show you in our next article.

YOU MAY ALSO LIKE

0 COMMENTS

LEAVE A COMMENT

Human?
1 + 3 =