Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Properties
 hspace Property
HSPACE Attribute | hspace Property

Sets or retrieves the horizontal margin for the object.

Syntax

HTML<ELEMENT HSPACE = iMargin... >
Scripting[ iMargin = ] object.hspace

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.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

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 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

APPLET, IFRAME, IMG, INPUT, INPUT type=image, MARQUEE, OBJECT, HTMLIFrameElement Constructor, HTMLImageElement Constructor, HTMLInputElement Constructor, HTMLMarqueeElement Constructor, HTMLObjectElement Constructor

See Also

vspace
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker