border-top-width: non-negative length | medium | thick | thin | inherit
|
Value
|
Description
|
medium
|
Specifies a medium top border, and it is default value
|
thin
|
Specifies a thin top border
|
thick
|
Specifies a thick top border
|
length
|
Allows to define the thickness of the top border.
|
<!DOCTYPE html>
<html> <head> <style> .low { border: 3px solid black; border-top-width: thick; } p { border: 3px solid black; border-top-width: 15px; } </style> </head> <body> <h1 class="low">This is a heading</h1> <p>This is a sample pera</p> </body> </html |