x
Summary
Gets or sets an element’s horizontal (x) position.
Property of css/cssom/propertiescss/cssom/properties
Syntax
var result = element.x;
element.x = value;
Notes
Remarks
A positioned element is an element whose position property is set to relative
, absolute
or fixed
. For more information about element positioning, see About Element Positioning.
Syntax
Standards information
See also
Related pages
- DragEventDragEvent
- MouseEventMouseEvent
- MouseWheelEventMouseWheelEvent
- WheelEventWheelEvent
Reference
- clientXclientX
- offsetXoffsetX
- pageXpageX
- screenXscreenX
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]