small grammatical changes (#20935)
parent
fa78b3d716
commit
a0e9e1f89b
|
@ -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.
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
## Syntax
|
||||
```css
|
||||
|
|
Loading…
Reference in New Issue