English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The hspace attribute specifies the space on the left and right of the object.
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 ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the hspace attribute.
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.
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.
<object hspace="pixels">
Value | Description |
---|---|
pixels | The space on the left and right of the object, in pixels. |