All Tech Tips

HSPACE Attribute | hspace Property

Sets or retrieves the horizontal margin for the object.

Syntax

HTML<ELEMENT HSPACE = iMargin... >
Scriptingobject.hspace [ = iMargin ]

Possible Values

iMarginInteger that specifies or receives the horizontal margin, in pixels.

The property is read/write. The property has a default value of 0.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. .

Remarks

This property is similar to the border property, except the margins do not have color when the element is a link.

When this property is set dynamically for an img or iframe object, the property value will be updated but the display will show no visible change.

Standards Information

This property is deprecated in HTML  and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .

Applies To

APPLET, IFRAME, IMG, INPUT, INPUT type=image, MARQUEE, OBJECT

See Also

vspace


Copyright © 2006 alltechtips.com. All rights reserved.

This website and the materials and information you find on this website are provided "as is", without warranty of any kind, either express or implied, including without limitation any warranty for information, services, or products provided through or in connection with the service and any implied warranties of merchantability, fitness for a particular purpose, expectation of privacy or non-infringement.