Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 3 replies
  • 1 has this problem
  • 7 views
  • Last reply by cees68

more options

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)

Chosen solution

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

Read this answer in context 👍 1

All Replies (3)

more options

Chosen Solution

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

more options

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).

more options

Problem is solved. Thank you!