Home Menu

border-width

The border-width CSS property is shorthand for border-top-width, border-right-width, border-bottom-width, and border-left-width.

Syntax

CSS

border-width: value;

JS

object.style.borderWidth = "value";

Values

<'border-width'> = <line-width>{1,4}
<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-top-width

External

World Wide Web Consortium (W3C)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms