Files
freeCodeCamp/guide/english/css/properties/padding-property/index.md
Akhil Babu e59e7cd2dd Updated index.md to change the grammatical mistakes (#32494)
* Updated index.md to change the grammatical mistakes

In the line no. 6, added an "an" before the word "element". Similar corrections in line no. 8, 9, and 10. In line no. 8, "then" is added in the line to make a proper meaning in completing the sentence. The word "to the" is added before the words such as "top", "left" and "bottom" in line nos. 9 and 10 to make a proper sentence.

* Update index.md

* Added a , before the then statement
2019-03-01 14:29:10 -08:00

1019 B

title
title
Padding Property

Padding Property

CSS padding property adds internal space between the content and border of an element. You may use padding-top, padding-right, padding-bottom and padding-left for a specific side of an element, but padding is shorthand version for all these properties. If:

  • If one value is provided, then it will apply to all sides of an element.
  • If two values are provided, then first value will apply to the top and bottom sides and second value will apply to the left and right sides of an element.
  • If three values are provided, then first value will apply to the top, second value will apply to the left and right, third value will apply to the bottom sides of an element.
  • If four values are provided, then values will apply in the following order: top, right, bottom, left.

More Information: