border-width

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

Syntax

border-width: [ thin | medium | thick | <length> ]{1,4} | inherit
Initial: medium
Applies To: all elements
Inherited: no
Percentages: NA
Media: visual

DOM

[window.]document.getElementById("element-id").style.borderWidth = "border-top-width border-right-width border-bottom-width border-left-width";

Example | length

Example | medium

Example | thick

Example | thin

Example | DOM

External

W3C Cascading Style Sheets, level 1

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification