OBJECT.hspace (Property)

A horizontal margin space either side of the <OBJECT> tag with respect to its surrounding objects.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:Number primitive
JavaScript syntax:-myOBJECT.hspace

Margins placed around objects are either modified separately with all four margin sides having a different property or by adjusting the horizontal margins and vertical margins using just two values.

The hspace property controls the margin to the left and right of the object.