This topic has not yet been rated - Rate this topic

backgroundPositionX property

The x-coordinate of the IHTMLRuleStyle::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 IHTMLCurrentStyle::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

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLCurrentStyle::backgroundPositionY

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.