CSS property: border-top
The border-top property is a shorthand property used to set one or more of the color, style, and width properties for the top border. Properties can be listed in any order.
Values
Value |
Description |
|---|---|
[border-top-color] [ border-top-style] [ border-top-width] |
This value is a whitespace-separated list of values for the border-top-color, border-top-style, and border-top-width properties. You can set from one to three values. Properties can be listed in any order. See the descriptions of the individual properties for more information about valid values. |
Parent topic: CSS Properties