Topic: CSS Basics

Border properties – CSS

Preview

To change the border of an element using CSS, use the border-width, border-style, border-color, and border-radius properties:

  border-width: 1px;
  border-style: solid;
  border-color: red;
  border-radius: 4px;

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