HTML and CSS Reference
In-Depth Information
Name
border-top
Values:
<'border-width'> || <'border-style'> || <color>
Initial value:
See individual properties
Applies to:
All elements
Inherited:
No
Computed value:
See individual properties
Description:
A shorthand property that defines the width, color, and style of the top border of an element.
As with border , omission of a border style will result in no border appearing.
Examples:
ul {border-top: 0.5in solid black;}
h1 {border-top: dashed 1px gray;}
Search WWH ::




Custom Search