Home Menu

border-top-width

The border-top-width CSS property sets the width of the top border of a box.

Syntax

CSS

border-top-width: value;

JS

object.style.borderTopWidth = "value";

Values

<'border-top-width'> = <line-width>
<line-width> = <length [0,∞]> | thin | medium | thick
<length>

Specifies the length using a number followed by a unit of measurement.

thin

A thin line.

medium

A medium line.

thick

A thick line.

Initial

medium

Examples

length

medium

thick

thin

JS

Internal

border

border-bottom

border-bottom-color

border-bottom-style

border-bottom-width

border-color

border-left

border-left-color

border-left-style

border-left-width

border-right

border-right-color

border-right-style

border-right-width

border-style

border-top

border-top-color

border-top-style

border-width

External

World Wide Web Consortium (W3C)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms