border-top

The border-top shorthand CSS property sets all the properties of an element's top border.

Example

Initial value as each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color: currentcolor
Applies to all elements. It also applies to ::first-letter.

Syntax

  
border-top: 8px solid red;
  

Values

See border-top-width.
See border-top-style.
See border-top-color.

Browser support

border-top112143.51

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

×