padding-left property
Description
CSS padding-left property represents space between the left sides of content and the border areas. It increases the height of a box more than usual.
Negative values are not allowed.
Syntax
padding-left :+ve length
Property values
length Default
-
There is no space between the left side border and content area.
padding-left: 0;
+ve length
-
There is 30px space between left side border and content area. The width of box increases by 30px due to padding-left.
padding-left: 30px;
Applicable to
It applies to all elements other than internal table elements.
From web4college, the free CSS digger
#CSS digger
Was this article helpful?
padding-left increases the width of a box more than usual.
▾