borderWidth property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the width of the left, right, top, and bottom borders of the object.
![]() |
Syntax
Integer value = object.put_borderWidth(BSTR v);Integer value = object.get_borderWidth(BSTR* sWidth);
Property values
Type: BSTR
up to four of the values listed in Possible Values.medium (medium)
-
Default.
thin (thin)
-
Width less than the default.
thick (thick)
-
Width greater than the default.
width (width)
-
Width consisting of a floating-point number, followed by an absolute units designator (
cm,mm,in,pt, orpc) or a relative units designator (em,ex, orpx)
String format
<border-width>
| inherit
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS 2.1, Section 5.5.15
Remarks
Up to four different widths can be specified, in the following order: top, right, bottom, left. If one width is specified, it is used for all four sides. If two widths are specified, the first is used for the top and bottom borders, and the second is used for left and right borders. If three widths are specified, they are used for top, right/left, and bottom borders, respectively.
As of Microsoft Internet Explorer 5.5, this property applies to inline elements. With earlier versions of Windows Internet Explorer, inline elements must have an absolute position or layout to use this property. Element layout is set by providing a value for the height property or the width property.
The border-width property does not render if the border-style property is set to none.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
DLL |
|
See also
- Reference
- border
- Other Resources
- CSS Enhancements in Internet Explorer 6
Build date: 1/23/2012
