Export (0) Print
Expand All
top
Expand Minimize
This topic has not yet been rated - Rate this topic

borderTopStyle property

Specifies the style of the top border of the object.

CSS Backgrounds and Borders Module Level 3, Section 4.2

Syntax

Integer value = object.put_borderTopStyle(BSTR v);Integer value = object.get_borderTopStyle(BSTR* sStyle);

Property values

Type: BSTR

none (none)

Default. No border is drawn, regardless of any specified IHTMLCSSStyleDeclaration::borderWidth.

hidden (hidden)

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.

dotted (dotted)

Border is a dotted line.

dashed (dashed)

Border is a dashed line.

solid (solid)

Border is a solid line.

double (double)

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 IHTMLCSSStyleDeclaration::borderWidth value. The border width must be at least 3 pixels wide to draw a double border.

groove (groove)

3-D groove is drawn in colors based on the value.

ridge (ridge)

3-D ridge is drawn in colors based on the value.

inset (inset)

3-D inset is drawn in colors based on the value.

outset (outset)

3-D outset is drawn in colors based on the value.

window-inset (window-inset)

Internet Explorer 6 and later. 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 ToAll elements
Mediavisual
Inheritedno
Initial Valuenone

Standards information

Remarks

An IHTMLCSSStyleDeclaration::borderWidth greater than zero must be set for the IHTMLCSSStyleDeclaration::borderTopStyle attribute to render.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLCSSStyleDeclaration::border

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.