Latest web development tutorials

HTML object vspace attributes

HTML Object Tag Reference HTML <object> tag

Examples

The top and bottom margin to 100 pixels of an object:

<p><object width="150" height="150" data="helloworld.swf" vspace="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 vspace attributes.


Definition and Usage

HTML5 does not support the <object> vspace attributes. Use CSS instead.

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

vspace attribute specifies the blank top and bottom of the object.


Compatibility Notes

In HTML 4.01, <object> the vspace attribute is deprecated. Use CSS instead.

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

CSS Example: with a margin <object>

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


grammar

<object vspace="pixels">

Property Value

描述
pixels 对象顶部和底部的空白,以像素计。


HTML object tag Reference Manual HTML <object> tag