Topic: CSS Basics

Padding – CSS

Preview

To change the padding of an element using CSS, use the padding-top, padding-right, padding-bottom, and padding-left properties:

  padding-top: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
  padding-left: 10px;

To view this and the other 300+ tutorials on Simple Dev, sign up for a 10-day free trial.