ScanSkill

padding-top

The padding-top property sets the padding at the top of the element.

Syntax

padding-top: value | auto;

Example

.div-1 {
            padding-top: 10px;
        }
padding-top

Property Values

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

auto: automatically sets the padding to the top of an element.