I've been thinking on and off all day and I'd like to do an ignominious
about-face on the zeroing margin and padding technique.

My initial concerns were that:
1. could be more verbose
2. could confuse less-savy future developers.

The verbose issue is easy to overcome. You can zero margins and padding in
one rule set and then set all block level items with margins in a second
rule set. For example:

h1, h2, h3, h4, h5, h6, p, blockquote, form, label, ul, ol, dl, fieldset,
address { margin-bottom: 1em; } or whatever margin setting you prefer.

This also overcomes concerns about passing on the css to future developers.
If all block level elements are specified in this second rule set then there
will be no major issues.

So, apologies to Andrew for overly critical comments earlier. Worth
exploring further.

Russ



> We can't on the one hand say "Don't rely on browser defaults" and on
> the other say "don't screw with the defaults -- future code monkeys
> will be confused".
> Each to their own; but you knew I wasn't going to agree from the get go.

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to