Learn
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.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.