CSS border property

Usage

A shorthand way to set all the border properties at once.

Variations

  • border-top
  • border-right
  • border-bottom
  • border-left

Values

  • border-width, border-style, and border-color properties

Example

Code:

div {
  border: 1px solid black;
}

div {
  border-right: 2px dotted orange;
}