Topic: CSS Basics

Margins – CSS

Preview

To change the margins of an element using CSS, use the following properties:

  margin-top: 10px;
  margin-right: 20px;
  margin-bottom: 30px;
  margin-left: 40px;

To view the full tutorial, sign up for a free trial on our Sign Up page.