CSS padding-right Property Tutorial

In this section, we will learn what the padding-right property is and how to use it in CSS.

CSS padding-right Property Definition and Usage

The CSS `padding-right` property is used to set the right padding of an element in an HTML document.

CSS padding-right Property Syntax

padding-right: length|auto|initial|inherit;

CSS padding-right Property Value

The value of this property is a number with relative, or absolute units supported in CSS.

Note: you can also use the two global values “initial” and “inherit” for this property.

Example: padding-right in CSS

See the Pen padding-right in CSS by Enjoy Tutorials (@enjoytutorials) on CodePen.

Leave a Reply