backgroundPositionX property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the x-coordinate of the background-position property.

Syntax

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

Property values

Type: VARIANT

length (length)

Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px). For more information about the supported length units, see CSS Values and Units Reference.

percentage (percentage)

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

ValueMeaning
0%

 

hAlignment (hAlignment)

Horizontal alignment value.

ValueMeaning
left

Horizontal alignment is to the left.

center

Horizontal alignment is centered.

right

Horizontal alignment is to the right.

 

String format

length | percentage | hAlignment

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

There are no standards that apply here.

Remarks

Windows Internet Explorer 8. The -ms-background-position-x attribute is an extension to 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

DLL

Mshtml.dll

See also

-ms-background-position-y

 

 

Build date: 1/23/2012

Community Additions

Show: