asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > VSPACE Attribute

VSPACE Attribute | vspace Property


Sets or retrieves the vertical margin for the object.

Syntax

Inline <element VSPACE = iMargin...>
Script object.vspace = iMargin ]

Possible Values

iMargin Integer value representing the vertical margin, in pixels.

The property is read/write with no default value.

Remarks

This attribute specifies the amount of white space to be inserted above and below an IMG, APPLET, or OBJECT.

In addition, the property can be used in IFRAME and MARQUEE objects in Internet Explorer®.

This attribute has been deprecated in favor of the CSS margin-top, margin-bottom, padding-top and padding-bottom properties.

Applies To

APPLET, IFRAME, IMG, MARQUEE, OBJECT

See Also

hspace

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note