From 3bf39c6146f6c6dda0b6a0ab77256a511a7e43ed Mon Sep 17 00:00:00 2001 From: manishkaa <35163295+manishkaa@users.noreply.github.com> Date: Thu, 8 Nov 2018 04:12:35 +0530 Subject: [PATCH] Add "Unit Information" (#22113) * Add "Unit Information" * Fixed formatting --- guide/english/css/margins/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guide/english/css/margins/index.md b/guide/english/css/margins/index.md index ca74ab1644..dfcdd4f4cc 100644 --- a/guide/english/css/margins/index.md +++ b/guide/english/css/margins/index.md @@ -53,6 +53,10 @@ An element can be aligned to the center by making it a block element and changin } ``` +## Unit Information + - Pixels (`px`) are relative to the viewing device. + - `em` implies relative to the font-size of the element (2em means 2 times the size of the current font). + - `%` implies relative to the parent element. ## Browser Support It is effectively supported in all browsers (since IE6+, Firefox 2+, Chrome 1+ etc)