Hi Bob
* margin:0; padding:0 removes the margin and padding from EVERYTHING.
You then have to declare your margins and padding on every element or there
will be none. 

Personally, I don't want to worry about forgetting the padding on an input
or the margin on a checkbox or forgetting to reset the indentation on a
blockquote.
 
So, I zero out the items I use regularly, leave the items I'm ok with, and
worry about the infrequent elements when I come across them. This keeps me
from wondering, now why isn't my blockquote getting indented? Why does the
text look so cramped in my inputs?

Ted

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Hi Ted,

What's the difference between what you do and * {margin: 0;  padding: 0;}?

Serious question - I do the latter, and so I need to know if I'm missing 
out somewhere.

Thanks,

Bob McClelland,
www.gwelanmor-internet.co.uk



Drake, Ted C. wrote:

>I've been adding this to the top of my style sheets: 
>html, body, div, h1, h2, h3, h4, ul, li, dl, dt, dd, ol, form {margin: 0;
>padding: 0;}
>
>I like to reset the major elements and then set new margins and paddings on
>the specific elements when needed.  This also gets rid of the repetitive
>margin:0; padding:0; declarations.
>
>This is not unique to me. Others have done more extensive reset commands.
>
>Ted
 
 
******************************************************
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