You are here: Re: Forms in table cells modify cell height - grrr « HTML « IT news, forums, messages
Re: Forms in table cells modify cell height - grrr

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация