English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Online-Tools

Referenzhandbuch

: <progress> Tag

HTML object vspace Eigenschaft

 HTML <object> Tag

vspace-Eigenschaft legt den Abstand des Objekts oben und unten fest.

Online-Beispiel5Oberer und unterer Abstand:

Beispiel
<!DOCTYPE html>
<html>
<head> - <title>HTML:<object> vspace Eigenschaft3codebox.com)</title>
</head>
<body>
<h4>Object ohne vspace:</h4>
<p><object width="15" height="15" data="bookmark.swf"></object> 
Dies ist ein Text. Dies ist ein Text. Dies ist ein Text.</p>
<h4>Object mit vspace:</h4>
<p><object width="15" height="15" data="bookmark.swf" vspace="5"</object> 
</body>
</html>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the vspace attribute.

Definition and Usage

HTML5 The <object> vspace attribute is not supported. Please use CSS instead.

In HTML 4.01 In it, the vspace property of <object> is deprecated.

The vspace property specifies the top and bottom spacing of the object.

Compatibility Notes

In HTML 4.01 In it, the vspace property of <object> is deprecated. Please use CSS instead.

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

CSS Example: <object> with margin

In our CSS tutorial, you can find more about margin propertydetails.

Syntax

<object vspace="pixels">

Attribute Value

ValueDescription
pixelsTop and bottom spacing of the object, in pixels.
 HTML <object> Tag