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 the full tutorial, sign up for a free trial on our Sign Up page.