Image.vspace

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

							image.vspace

Description

The vspace property of the Image object specifies the number of extra pixels that should appear on the top and bottom of the image. This property can only be set by the VSPACE attribute of the <img> tag.

Example

Listing 7.316 demonstrates the vspace property.

Listing 7.316 Example of the vspace Property
 <html> <head> <title>Example of vspace property</title> </head> Text at top of image.<br> <img name="circle" src="circle.gif" VSPACE=100><br> Text at bottom of image.<br> <script language="JavaScript"> <!-- Hide //Display value of vspace property document.write("The vspace property of the image is "); document.write(document.circle.vspace); ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.