<?xml version="1.0" encoding="utf-8"?>

CSS padding-top property

CSS padding-top property

The correct name for a property setting the top padding is — surprise! — padding-top. You can either use an individual property or a shorthand padding property and define one, two, three, or four values separated by gaps. The first value will always be meant for the top padding.

Improve your UX & Product skills with interactive courses that actually work