CSS property: border-top
The border-top property is a shorthand property used to set any or all of the color, style, and width properties for the top border. Properties can be listed in any order.
Property values
Value |
Description |
|---|---|
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. |
|
inherit |
This value specifies that the element inherits the border-top property of the containing element. |
Parent topic: CSS Properties