Example
A simple border-top property example:
Laboratory
description & Usage
We determine the upper margin with the border-top property.
Browser compatibility and Support
| # |
Chrome |
Edge |
Firefox |
Safari |
Opera |
| border-top |
|
|
|
|
|
Values
| Values |
Description |
|
border-top-width
|
Specifies the width of the top border.
|
|
border-top-style
|
Specifies the top margin style.
|
|
border-top-color
|
Determines the color of the top border.
|
|
initial
|
Adds this value to its default property.
|
|
inherit
|
It inherits this value from its parent tag.
|