Friday 2 September 2016

Padding

  • Padding is used to generate the space around content.
  • It clears an area around the content of an element.
  • Padding is the space between the web element(text, image, buttons, etc..) and the border of that element.


Padding in CSS has for specifying each side of an element:
  • Padding-Top
  • Padding-Bottom
  • Padding-Left
  • Padding-Right
Benefits of Padding are:
  • The elements are looks good.
  • Easy to understand.
Examples of Padding are: