CSS Padding property


CSS padding properties allow you to set the padding area for an element that separates your content from your limit. Padding is affected by the background color of the box.
  • padding
  • padding-top
  • padding-right
  • padding-bottom
  • padding-left
Example -

#divOne {
    padding : 20px;
}

#divTwo {
    padding : 20px 10px 20px 10px;
}

#divThree {
    padding-top    : 20px;
    padding-right  : 10px;
    padding-bottom : 20px;
    padding-left   : 10px;
}




Share on Google Plus

About It E Research

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment