From cfc0662583a7056248cf06ccf3910623c2d905ad Mon Sep 17 00:00:00 2001 From: carsandparties <37985474+carsandparties@users.noreply.github.com> Date: Mon, 24 Dec 2018 21:13:57 -0600 Subject: [PATCH] Add units that padding can be specified in (#27213) Also add that padding values are not inherited the same way that color values of the font-family property are --- guide/english/css/padding/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/css/padding/index.md b/guide/english/css/padding/index.md index c10bfc074a..55fcc68b0c 100644 --- a/guide/english/css/padding/index.md +++ b/guide/english/css/padding/index.md @@ -3,9 +3,9 @@ title: Padding --- # Padding -The `padding` CSS property sets the padding area on all four sides of an element. This property can be used to generate space around content (inside the border). It is a shorthand to set all individual paddings at once: `padding-top`, `padding-right`, `padding-bottom`, and `padding-left`. Values are defined in the clockwise direction, starting at the top. +The `padding` CSS property sets the padding area on all four sides of an element. This property can be used to generate space around content (inside the border) to improve readability of the content inside. It is a shorthand to set all individual paddings at once: `padding-top`, `padding-right`, `padding-bottom`, and `padding-left`. Values are defined in the clockwise direction and are most often specified in pixels, although percentages or ems can also be used. If a percentage is used, the padding will be a percentage of the browser window or of the container it is found in. -Padding values are set using lengths, percentages, or the `inherit` keyword, and cannot accept negative values. The initial, or default, value for all padding properties is 0. The `inherit` keyword cannot be used with a length value. +Padding values are set using lengths or percentages or `inherit` keyword, and cannot accept negative values. The initial, or default, value for all padding properties is 0. While you can use `inherit` keyword but it can not be used along with a length value. The `padding` property value is not inherited by the child elements like the `color` value of the `font-family` property is, so the padding must be specified for each element that requires it. ## Syntax ```css