HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

border-width

Description

The border-width property for CSS 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

1 · length

2 · medium

3 · thick

4 · thin

5 · JS