CSS padding property represents space between the sides of content and the border areas. It increases the size of a box more than usual.
Negative values are not allowed.
padding :+ve length
There is no space between the side borders and the content area.
There is 10px space between side borders and the content area. The size of box increases by 10px due to padding.
It applies to all elements other than internal table elements.
Was this article helpful?