HTML object hspace property
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>
This is some text. This is some text. This is some text.</p>
try it"
Browser Support
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