All TalkersCode Topics

Follow TalkersCode On Social Media

devloprr.com - A Social Media Network for developers Join Now ➔

CSS Padding

CSS Padding is used to make space between the elements content and its border.Padding is completely transparent. You can use the value of padding independently by by giving the value of padding properties of top,left,bottom and right padding or you can also give the combined value.


Possible values of padding properties are auto,length,%,inherit.


Padding Properties

  • padding:You can give all the four values like
  • padding:20px 10px 15px 20px;

    padding:top right bottom left



  • padding-top:
  • padding-top:20px;



  • padding-right:
  • padding-right:10px;



  • padding-bottom:
  • padding-bottom:15px;



  • padding-left:
  • padding-left:20px;
    ❮ PrevNext ❯