borderTopWidth property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the width of the top border of the object.
![]() |
Syntax
Integer value = object.put_borderTopWidth(Variant v);Integer value = object.get_borderTopWidth(Variant* sWidth);
Property values
Type: VARIANT
medium (medium)
-
Default.
thin (thin)
-
Less than the default width.
thick (thick)
-
Greater than the default width.
width (width)
-
Floating-point number, followed by an absolute units designator (
cm,mm,in,pt, orpc) or a relative units designator (em,ex, orpx). For more information about the supported length units, see CSS Values and Units Reference.
String format
medium | thin | thick | width
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS 2.1, Section 5.5.11
Remarks
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.
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
