border

Sets an element's border. It controls the border-width, border-style, and border-color values.

Example

Initial value Initial value of all properties that this property controls
Applies to all elements in the page

Syntax

  
border: 2px solid #ccc;
  

Values

Sets the border's thickness. See border-width.
Sets the border's style. See border-style.
Sets the border's color. It defaults to currentcolor if not present. See border-color.

Browser support

border112143.51

We use cookies to improve your experience. Learn more in our Privacy policy.

×