HTML <iframe> marginwidthAttribut
Beispiele
Ein <iframe> mit 50 Pixeln Abstand links und rechts:
<iframe src="demo_iframe.htm.html" marginwidth="50">
</iframe>
</iframe>
Selbst ausprobieren »
Browser-Unterstützung
![]()
![]()
![]()
![]()
![]()
Alle gängigen Browser unterstützen das marginwidth-Attribut.
Definition und Verwendung
HTML5 unterstützt das marginwidth-Attribut von <iframe> nicht. Verwenden Sie stattdessen CSS.
Das marginwidth-Attribut gibt die linken und rechten Ränder des Inhalts eines <iframe> in Pixeln an.
Syntax
<iframe marginwidth="pixels">
Attributwerte
| Wert | Beschreibung |
|---|---|
| pixels | Gibt die linken und rechten Ränder des Inhalts eines <iframe> in Pixeln an. |
HTML-<iframe>-Tag Andere Erweiterungen