borderTop property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the properties of the top border of the object.
![]() |
Syntax
Integer value = object.put_borderTop(BSTR v);Integer value = object.get_borderTop(BSTR* sTop);
Property values
Type: BSTR
one or more of the space-delimited values listed in Possible Values.widthmedium Any of the range of width values available to the borderTopWidth property.
-
Value Meaning width medium Any of the range of width values available to the border-top-width property.
style none Any of the range of style values available to the border-top-style property.
color Any of the range of color values available to the border-top-color property.
String format
[
<border-width>
||
<border-style>
||
<border-top-color>
]
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS 2.1, Section 5.5.18
Remarks
The border-top property is a composite property that sets the width, color, and style values for the top border of an object.
All individual border properties not set by the composite border-top property are set to their default values. For example, the default value for width is medium.
If a color is not specified, the text color is used.
For more information about supported colors, see the BUGBUG! missing link text: ie.Color_Table.
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
