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

HTML DOM Image vspace property

Image vspace property

Image Object Reference Image Object


Definition and Usage

The vspace property sets or returns the whitespace at the top and bottom of the image.

The space and vspace properties can be used with align to set the distance between the image and the surrounding text.

Syntax

imageObject.vspace=

pixels


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the vspace property


Example

Example

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

Computerman

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

Try it »


Image Object Reference Image Object