CSS padding-top property
Description
CSS padding-top property represents space between the top sides of content and the border areas. It increases the height of a box more than usual.
Negative values are not allowed.
Syntax
padding-top :+ve length
Property values
length Default
-
There is no space between the top side border and content area.
padding-top: 0;
+ve length
-
There is 30px space between top side border and content area. The height of box increases by 30px due to padding-top.
padding-top: 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-top increases the height of a box more than usual.
▾