CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS line-height property




The CSS line-height property set a space between two line.


Property Values


Properties Value Description
Syntax line-height:value;
value   Size_px
  Peercentage
  auto
  inherit
Allow to All elements
Inherited Yes

Example-Code:

<p style="line-height:20px;">Line Height paragraph.1</p>
<p style="line-height:20px;">Line Height paragraph.2</p>
Online Try This Code Your Self....   »

Example-Result:

Line Height paragraph.1

Line Height paragraph.2