asp.net.ph

Skip Navigation Links

HSPACE Attribute | hspace Property

Language References


Sets or retrieves the horizontal margin for the object.

Syntax


Inline <element HSPACE = iMargin...>
Script object.hspace = iMargin ]

Possible Values


iMargin Integer value representing the horizontal margin in pixels.

The property is read/write with a default value that is browser-specific, generally a small, non-zero length.

Remarks

This attribute specifies the amount of white space to be inserted to the left and right of 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-left, margin-right, padding-left and padding-right properties.

Applies To

APPLET, IFRAME, IMG, MARQUEE, OBJECT

See Also

vspace



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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