Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

Why is the attribute "leftmargin" in the HTML body tag ignored by Firefox?

  • 3 Antworten
  • 1 hat dieses Problem
  • 23 Aufrufe
  • Letzte Antwort von cees68
  • Gelöst

Check f.i. http://www.vaartips.nl/tipa.htm and see the difference (left margin) between FF and IE. De "leftmargin 20" is ignored (not working) in FF (see code of the page)

Check f.i. http://www.vaartips.nl/tipa.htm and see the difference (left margin) between FF and IE. De "leftmargin 20" is ignored (not working) in FF (see code of the page)

Ausgewählte Lösung

hello, <body leftmargin="20"> is not html-compliant souce code.

you could add body { margin-left:20px } in the css-style section instead...

<head>
<style type="text/css">
body { margin-left:20px }
...
</style>
</head>

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.vaartips.nl%2Ftipa.htm&charset=%28detect+automatically%29&doctype=Inline&group=0

Diese Antwort im Kontext lesen 👍 1

Alle Antworten (3)

Ausgewählte Lösung

hello, <body leftmargin="20"> is not html-compliant souce code.

you could add body { margin-left:20px } in the css-style section instead...

<head>
<style type="text/css">
body { margin-left:20px }
...
</style>
</head>

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.vaartips.nl%2Ftipa.htm&charset=%28detect+automatically%29&doctype=Inline&group=0

See also https://developer.mozilla.org/en-US/docs/Mozilla_Quirks_Mode_Behavior

The topmargin, bottommargin, leftmargin, and rightmargin attributes on BODY are supported only in quirks mode (bug 9258).

Problem is solved. Thank you!