|
Box Properties |
![]() |
||
Box Properties
Top Margin
Right Margin
Bottom Margin
Left Margin
Margin
Top Padding
Right Padding
Bottom Padding
Left Padding
Padding
Top Border Width
Right Border Width
Bottom Border Width
Left Border Width
Border Width
Border Color
Border Style
Top Border
Right Border
Bottom Border
Left Border
Border
Width
Height
Float
Clear
Appearance:
border-width: <value>
Possible Values:
[ thin | medium | thick | <length> ]{1,4}
Initial Value:
Not defined
Applies to:
All elements
Inherited:
No
The border-width property is used to set the border width of an element by specifying between one and four values, where each value is a keyword or a length. Negative lengths are not permitted.
If four values are given, they apply to top, right, bottom, and left border width, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.
This property is a shorthand for the border-top-width, border-right-width, border-bottom-width, and border-left-width properties.
One may also use the border shorthand property.