Code Editor
Web Browser
Boundaries and Space

Working with Padding

The CSS padding property controls the empty space between the page element's content and its border. Increasing a page element's padding makes the space around the content more spacious, while decreasing it makes the space more compact.

p { padding: 20px; }

The CSS above would give paragraph elements a padding of 20px.

Report a Bug
If you see a bug or any other issue with this page, please report it here.