border-top

properties of the top edge of the element's border, such as width, style, and color

Example

1

Description

properties of the top edge of the element's border, such as width, style, and color

This is a shortcut property that sets the border-top-width, border-top-style, and border-top-color properties in one statement. It's not necessary to provide all three values, but they must appear in that order.

Values

Value Description
Values
border-top-width border-top-style border-top-color