Kepler Gelotte wrote:
> Just add:
>
> * { margin:0; padding:0 }
>
> to the top of your CSS file. It resets the padding and margin for all
> elements.
A general problem with such a "general reset" approach is that "it
resets the padding and margin for all elements", and if one adds
vertical margins on elements simply because such margins are needed in a
design, then the "collapsing margins" problem may pop up again -
depending on which elements margins are declared on.
Thus, the problem isn't solved, it's just avoided for a particular case.
Better to understand and be able to control the problems involved with
use of certain properties/values first, so one can make proper use of
all properties/values in the specs - as/when needed.
regards
Georg
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/