Added description to padding (#26934)

Added description of styling the four sides by themselves
pull/27213/head
Jesper Brinch Korsbakke 2018-12-25 03:57:22 +01:00 committed by Randell Dawson
parent e0950c8430
commit 474b5dc749
1 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,16 @@ padding: 1em 2em 2em;
/* top | right | bottom | left */
padding: 5px 1em 0 1em;
```
Alternatively, you can style the sides by themselves
```css
padding-top: 1em;
padding-right: 1em;
padding-bottom: 1em;
padding-left: 1em;
```
## Where in box model
The padding property in CSS defines the innermost portion of the box model, creating space around an element's content, inside of any defined margins and/or borders.