The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Borders |
| Previous Style: border-top-style | Next Style: border-width |


border-top-width

Specifies the top border width of the element's box.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later 4.0 and later

See Also:

border-width, border-bottom-width, border-left-width, border-right-width

Possible Values:

[length]
A specific border width.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later 4.0 and later

medium
Creates a medium border.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later 4.0 and later

thick
Creates a thick border.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later 4.0 and later

thin
Creates a thin border.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later 4.0 and later

Example:
<P STYLE="border-top-width: thin; border-top-style: solid">
Thin top border
<P STYLE="border-top-width: medium; border-top-style: solid">
Medium top border
<P STYLE="border-top-width: thick; border-top-style: solid">
Thick top border
How It Looks:

Thin top border

Medium top border

Thick top border


| Index | Current Category: Borders |
| Previous Style: border-top-style | Next Style: border-width |