CSS padding-right Property


Padding is the space between the content and the border of a container. The padding-right CSS property specifies the width of the padding area to the right of an element.

Syntax

Example

Preview

Property Values

Value Description
length Specifies a fixed top padding in px, pt, cm, etc. Default value is 0. Read about length units
% Specifies a top padding in percent of the width of the containing element
initial Set this property to its default value.
inherit Inherits this property from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
padding-right 1.0 1.0 1.0 4.0 3.5