CSS padding-right property

Description

CSS padding-right property represents space between the right sides of content and the border areas. It increases the height of a box more than usual.

Negative values are not allowed.

Syntax

padding-right :+ve length

Property values

length Default

There is no space between the right side border and content area.

padding-right: 0;

+ve length

There is 30px space between right side border and content area. The width of box increases by 30px due to padding-right.

padding-right: 30px;

Applicable to

It applies to all elements other than internal table elements.

#CSS digger
Was this article helpful?

 
padding-right increases the width of a box more than usual.
×

Ctrl+D