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

Online Werkzeuge

Referenzhandbuch

: <progress> Tag

The hspace attribute specifies the space on the left and right of the object.

 HTML <object> Tag

HTML object hspace Eigenschaft

Online Beispiel 10Linker und rechter Abstand:

Beispiel
<!DOCTYPE html>
<html>
<head> - <title>HTML:<object> hspace Eigenschaft3codebox.com)</title>
</head>
<body>
<h4>Object ohne hspace:</h4>
<p><object width="150" height="150" data="bookmark.swf"></object> 
Dies ist einige Text. Dies ist einige Text. Dies ist einige Text.</p>
<h4>Object mit hspace:</h4>
<p><object width="150" height="150" data="bookmark.swf" hspace="100"></object> 
Dies sind einige Wörter. Dies sind einige Wörter. Dies sind einige Wörter.</p>
</body>
</html>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the hspace attribute.

Definition and Usage

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

In HTML 4.01 In the <object>, the hspace attribute is deprecated.

The hspace attribute specifies the space on the left and right of the object.

Compatibility Notes

In HTML 4.01 In the <object>, the hspace attribute is deprecated. Please use CSS instead.

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

CSS Example: <object> with margin

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

Syntax

<object hspace="pixels">

Attribute Value

ValueDescription
pixelsThe space on the left and right of the object, in pixels.
 HTML <object> Tag