Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Image hspace property

Image hspace property

Image Object Reference Image Object


Definition and Usage

The hspace property sets or returns the value of the hspace attribute of an image.

The hspace attribute specifies the whitespace on the left and right edges of the image.

Syntax

imageObject.hspace=

pixels


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the hspace property


Example

Example

The following example sets the hspace and vspace attributes of the image:

Runoob Tutorial(runoob.com) Computerman

Some text. Some text. Some text. Some text.

Try it »


Image Object Reference Image Object