|
Posted by Jukka K. Korpela on 07/07/07 12:08
Scripsit Ben C:
> Firefox in quirks mode gives form a bottom margin of about 0.5em.
That's an interesting observation to be added to my little page on what may
happen in Quirks Mode, http://www.cs.tut.fi/~jkorpela/quirks-mode.html
But on my Firefox 2, under Win XP, the margin appears to be rather exactly
1em. Actually, that's the value set at the end of the CSS file that
purportedly describes many of the features of Quirks Mode in Firefox:
/* Quirk: give form margin for compat (b=41806) */
form{
margin: 0 0 1em 0;
}
( http://lxr.mozilla.org/seamonkey/source/layout/style/quirk.css )
It's presumably meant to continue the tradition of web browsers to leave
that much spacing below a form. It used to be a frequently asked question
how to get rid of it, especially in the old days when CSS was poorly
supported, and different tricks were often suggested, often creating much
bigger problems than the original one. Nowadays, of course,
> form { margin: 0 }
solves the problem.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
[Back to original message]
|