Latest web development tutorials

HTML object hspace property

HTML object tag Reference Manual HTML <object> tag

Examples

The left and right margins of the object that is 100 pixels:

<p><object width="150" height="150" data="helloworld.swf" hspace="100"></object>
This is some text. This is some text. This is some text.</p>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support hspace attribute.


Definition and Usage

HTML5 does not support the <object> hspace property. Use CSS instead.

In HTML 4.01, <object> the hspace attribute obsolete .

hspace attribute specifies the object on the left and right of the blank.


Compatibility Notes

In HTML 4.01, <object> the hspace attribute obsolete. Use CSS instead.

CSS Syntax: <object style = "margin: 0px 100px">

CSS Example: with a margin <object>

In our CSS tutorial you can find more information about the margin property detail.


grammar

<object hspace="pixels">

Property Value

描述
pixels 对象左侧和右侧的空白,以像素计。


HTML object tag Reference Manual HTML <object> tag