CSS padding-left Property Tutorial

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

CSS padding-left Property Definition and Usage

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

CSS padding-left Property Syntax

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

CSS padding-left 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-left in CSS

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

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies