Mozilla will shut down Pocket’s services on July 8, 2025. At that time users will no longer be able to access the Pocket website, apps and API. You can export your saved items and API data until October 8, 2025 before they are permanently removed. For more information, see this article.

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

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)

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

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!