Easy Tutorial
❮ Coll Doc Anchors Jsref Log2E ❯

Style borderTop Property


Definition and Usage

The borderTop property sets or returns the three individual top border properties in a shorthand form.

Using this property, you can set/return:

Syntax

Set the borderTop property:

Return the borderTop property:

Note: The borderTop property has no default value.

Parameter Description
width Sets the width of the top border.
style Sets the style of the top border.
color Sets the color of the top border.

Browser Support

All major browsers support the borderTop property.


Example

Change the width, style, and color of the top border:

❮ Coll Doc Anchors Jsref Log2E ❯