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

backgroundPositionX property

The x-coordinate of the IHTMLCSSStyleDeclaration::backgroundPosition property.

Syntax

Integer value = object.put_backgroundPositionX(Variant v);Integer value = object.get_backgroundPositionX(Variant* iPositionX);

Property values

Type: VARIANT

length

Floating-point number, followed by a supported length unit.

percentage

Integer, followed by a percent sign (%). The value is a percentage of the width of the object.

ValueMeaning
0%

 

left

Horizontal alignment is to the left.

center

Horizontal alignment is centered.

right

Horizontal alignment is to the right.

String format

<length> | <percentage> | left | center | right

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value0%

Standards information

There are no standards that apply here.

Remarks

Starting in Windows Internet Explorer 8, the IHTMLCSSStyleDeclaration::backgroundPositionX property is an extension to Cascading Style Sheets (CSS), and can be used as a synonym for background-position-x in IE8 Standards mode.

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::backgroundPositionY

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.