borderLeftStyle property
Sets or retrieves the style of the left border of the object.
![]() |
Syntax
Integer value = object.put_borderLeftStyle(BSTR v);Integer value = object.get_borderLeftStyle(BSTR* sStyle);
Property values
Type: BSTR
-
Default. No border is drawn, regardless of any specified IHTMLRuleStyle::borderWidth.
-
Internet Explorer 8. Same as none, except in terms of conflict resolution of collapsed borders. Any element with a hidden border suppresses all shared borders at that location. Borders with a style of none have the lowest priority.
-
Border is a dotted line.
-
Border is a dashed line.
-
Border is a solid line.
-
Border is a double line drawn on top of the background of the object. The sum of the two single lines and the space between equals the IHTMLRuleStyle::borderWidth value. The border width must be at least 3 pixels wide to draw a double border.
-
3-D groove is drawn in colors based on the value.
-
3-D ridge is drawn in colors based on the value.
-
3-D inset is drawn in colors based on the value.
-
3-D outset is drawn in colors based on the value.
-
Same as inset with a thin outside border.
String format
none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | window-inset
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | none |
Standards information
- CSS Backgrounds and Borders Module Level 3, Section 4.2
Remarks
A IHTMLRuleStyle::borderWidth greater than 0 must be set for the IHTMLRuleStyle::borderLeftStyle attribute to render.
Examples
This example uses IHTMLRuleStyle::borderLeftStyle to specify the left border style for a div element.
<body> <div id="left"></div> </body>
The CSS below specifies double as the default border style for div elements, then sets IHTMLRuleStyle::borderLeftStyle to solid for the div element above. The following image shows the result, a solid left border.

div {
width: 50px;
height: 50px;
border-width: 5px;
border-style: double;
border-color: #4169E1;
}
#left {
border-left-style: solid;
}
Requirements
|
Minimum supported client |
Windows XP |
|---|---|
|
Minimum supported server |
Windows Server 2003 |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
- IHTMLRuleStyle::border
- IHTMLRuleStyle::borderRightStyle
- IHTMLRuleStyle::borderTopStyle
- IHTMLRuleStyle::borderBottomStyle
