css.properties

padding-top

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

Formal Syntax

<length-percentage [0,โˆž]>

See specification

JavaScript Access

// Access via element.style
element.style.paddingTop = '0';

Logical Property Group

This property belongs to the padding logical property group, which includes:

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
padding-top11112

Related Properties