From 474b5dc7497996c55325fc7105f2d0ae87bd0abd Mon Sep 17 00:00:00 2001 From: Jesper Brinch Korsbakke <21107805+jebkor@users.noreply.github.com> Date: Tue, 25 Dec 2018 03:57:22 +0100 Subject: [PATCH] Added description to padding (#26934) Added description of styling the four sides by themselves --- guide/english/css/padding/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guide/english/css/padding/index.md b/guide/english/css/padding/index.md index 547bd2bedd..c10bfc074a 100644 --- a/guide/english/css/padding/index.md +++ b/guide/english/css/padding/index.md @@ -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.