Topic: CSS Basics

Border properties – CSS


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 this and the other 300+ tutorials on Simple Dev, sign up for a 10-day free trial.