hspace attribute | hspace property

Sets or retrieves the horizontal margin for the object.

 

Syntax

HTML<element hspace="p" ... >
JavaScript

p = object.hspace

 

Property values

Type: Integer

the horizontal margin, in pixels.

0

Default value.

Standards information

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.

See also

applet
iframe
img
input
input type=image
marquee
object
vspace

 

 

Show:
© 2014 Microsoft