From http://www.w3schools.com (Copyright Refsnes Data)
The border-top-width property sets the width of an element's top border.
Inherited: No
Note: Always declare the border-style property before the border-width property. An element must have borders before you change the width of them.
CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.borderTopWidth="thick"
In our HTML DOM tutorial you can find more details about the borderTopWidth property.
In our HTML DOM tutorial you can also find a full Style Object Reference.
table table |
Value | Description |
---|---|
thin | Defines a thin top border. |
medium | Default. Defines a medium top border. |
thick | Defines a thick top border. |
length | Allows you to define the thickness of the top border. |
Set the width of the top
border
This example demonstrates how to set the width of the top border.
From http://www.w3schools.com (Copyright Refsnes Data)