border-bottom

The border-bottom shorthand CSS property determines the bottom border of an element. Border-bottom-width, border-bottom-style, and border-bottom-color are all set by this property.

Example

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

Syntax

  
border-bottom: 1px solid #ccc;
  

Values

See border-bottom-width.
See border-bottom-style.
See border-bottom-color.

Browser support

border-bottom112143.51

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

×