Why is the attribute "leftmargin" in the HTML body tag ignored by Firefox?
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
by philipphello, <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>
Read this answer in context
1
Helpful replies
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).
Go to answer 1Additional 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
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>
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).
Question owner
Problem is solved. Thank you!
