X
Tap here to go to the mobile version of the site.

Support Forum

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

Posted

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

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.01
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Google Update
  • Sony Reader Application Detector Plugin
  • 4.1.10329.0
  • Picasa plugin
  • GEPlugin
  • DivX VOD Helper Plug-in
  • NPWLPG
  • Office Plugin for Netscape Navigator

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

philipp
  • Top 10 Contributor
  • Moderator
2827 solutions 13159 answers

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

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
cor-el
  • Top 10 Contributor
  • Moderator
12018 solutions 111682 answers

Helpful Reply

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

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

Question owner

Problem is solved. Thank you!

Problem is solved. Thank you!