Skip to content
HTML.ONE
Home CSS Properties

CSS Padding

Sets internal spacing between content and border.

Example

padding: 16px 24px;

Further reference

MDN CSS reference

Live preview