CSS Padding

CSS Padding

CSS Padding

property is used to define the space between the element content and the element border. image.png

via GIPHY

Padding - Individual Sides 👇

CSS has properties for specifying the padding for each side of an element:

  • padding-top
  • padding-right
  • padding-bottom
  • padding-left

image.png

All CSS Padding Properties👇

Definition👇 image.png

Diagram 👇 image.png

Example👇 image.png

Padding - Shorthand Property👇

image.png


image.png> Download our HTML & CSS Visual Treat! ebook Here: Click here

Â