Name

border-top-width — IE4 P/P | IE5 P/Y | NN4 B/B | Op3 Y/-

Synopsis

Sets the width of the top border of an element, which will inherit the element’s background, and may have a foreground of its own (see border-style). Negative length values are not permitted.

Example

UL {border-top-width: 0.5in;}

Values

thin | medium | thick | <length>

Default

medium

Inherited

no

Applies to

all elements

Get Cascading Style Sheets: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.