IMG.hspace (Property)

The horizontal spacing either side of the image.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myIMG.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.

See also:Image.hspace