CSS · Properties — CSS Box Model

padding-left

The CSS padding-left property. Initial value: 0. Not inherited.

Syntax
padding-left: <length-percentage [0,∞]>

Example

Try it

Notes

Media: visual. Applies to: allElementsExceptInternalTableDisplayTypes. Computed value: percentageAsSpecifiedOrAbsoluteLength.

More in this group

margin-trim padding-bottom padding-right padding-top

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course