This website may use cookies. More info. That's Fine x
Welcome Login

Css: line-height


Css

Specifies line height, enabling to you to set lines of text appearing closer together or further apart.

See also: letter-spacing and word-spacing properties.

Eg:

<p style="line-height: 10px">
This is a paragraph with a smaller line-height.
This is a paragraph with a smaller line-height.
This is a paragraph with a smaller line-height.
This is a paragraph with a smaller line-height.
</p>

<p style="line-height:30px">
This is a paragraph with a bigger line-height.
This is a paragraph with a bigger line-height.
This is a paragraph with a bigger line-height.
This is a paragraph with a bigger line-height.
</p>

 

Outputs:

line-height


Created on: Wednesday, March 30, 2011 by Andrew Sin