Skip to main content

Command Palette

Search for a command to run...

CSS Padding

Published
•1 min read•View as Markdown
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

More from this blog

Code March's blog

46 posts