padding

The space inside an element between its content and its border, filled with the element's background.

In more detail

Padding cannot be negative. Under content-box sizing, padding makes the element bigger than its declared width; under border-box it is taken from inside the width.

Related terms

Taught in

References