4. CSS Padding


          The space between the content of the element and its border is the padding. The padding property will set how much this space should appear in the page. The shorthand property works the same as the shorthand property of margin. It is also possible to change the padding individually.

  • padding-top – defines the top padding of an element. p
  • adding-right – defines the right padding of an element.
  • padding-bottom – defines the bottom padding of an element.
  • padding-left – defines the left padding of an element.