ScanSkill

padding-left

The padding-left property sets the padding at the left side of the element.

Syntax

padding-left: value | auto;

Example

.div-1 {
            padding-left: 20px;
        }
padding-left

Property Values

value: sets the given value as the padding to the left side of an element.

auto: automatically sets the padding to the left side of an element.