From fdfe03e66a0b3a9ffe6b4c42f71b27f1ca689ea9 Mon Sep 17 00:00:00 2001 From: Jesper Brinch Korsbakke <21107805+jebkor@users.noreply.github.com> Date: Wed, 13 Feb 2019 10:38:20 +0100 Subject: [PATCH] Added info to styling of margins (#26932) * Update index.md Added an explanation of how you can style the sides by themselves * Replace 'sides' with 'margins' --- guide/english/css/margins/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guide/english/css/margins/index.md b/guide/english/css/margins/index.md index c5afd0c0a8..dc6ebd1679 100644 --- a/guide/english/css/margins/index.md +++ b/guide/english/css/margins/index.md @@ -34,6 +34,17 @@ margin: 1em 2em 2em; margin: 5px 1em 0 1em; ``` +Alternatively, you can style the margins by themselves: +```css +margin-top: 1em; + +margin-right: 1em; + +margin-bottom: 1em; + +margin-left: 1em; +``` + ## Where in box model The margin property in CSS defines the outermost portion of the box model, creating space around an element's content, outside of any defined paddings and/or borders.