Home HTML CSS JAVASCRIPT BOOTSTRAP Python Docker ML tutorial About us Privacy policy

CSS Padding


CSS Padding:-



Code Family
The CSS padding propertie are used to providing space around an the elements content, inside of any defined border of the element.
The padding is used to top, right, bottom, and left,
Padding - Individual Sides in elements-:
  • padding-top
  • padding-right
  • padding-bottom
  • padding-left

  • All the padding properties for elements-:
  • length:-padding in px, pt, cm, etc
  • % - a padding in % of the width of the element

  • Padding - Shorthand Property:-

    Shorthand Property of padding

    padding: 20px 30px 55px 100px;

    top padding is 20px
    right padding is 30px
    bottom padding is 55px
    left padding is 100px