CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS line height Property

CSS line-height Property



The line-height property is used to specify the height of a line. Negative values are not allowed.


Default Value:-


Its default value is normal.




Its syntax is:- line-height: normal | number | length | initial | inherit;


Further Explanation:-


Value Description
normal A normal line height.
number A number that will be multiplied by the current font-size to set the line height
length A fixed line height in px, pt, cm, etc.
% A line height in percent of the current font size
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS