I think it's a bit more complicated than that. I found this statement online: "There are some cases where the inner selector does not inherit the surrounding selector's values, but these should stand out logically. For example, the margin-top property is not inherited; intuitively, a paragraph would not have the same top margin as the document body."
I completely disagree with the logical and intuitive sentiments, and find browser implementation of margins and padding to be, among other things, inconsistent. I did a bunch of testing about a year ago and ended up using Tantek's stylesheet (undohtml.css). http://tantek.com/log/2004/09.html#d06t2354 http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/ http://creatingdrew.com/2008/08/6-popular-css-reset-techniques/ --- Alyda > From: Alan K Baker <[EMAIL PROTECTED]> > Reply-To: Alan K Baker <[EMAIL PROTECTED]> > Date: Tue, 7 Oct 2008 17:38:42 +0100 > To: css-d <css-d@lists.css-discuss.org> > Subject: Re: [css-d] IE position problem > > Jennifer. > > Setting padding and margin to 0 in 'body' will globally remove all padding and > margins until you change the situation. That is, if you do nothing else to > padding or margins, they will never appear. > As soon as you define a class or id and change its padding and/or margin, that > definition will be obeyed within that class or id. Anything outside those > definitions, that is in the body only, will obey the definition for the body. > i.e. No padding/no margin. > > I hope this helps. > > Regards, > > Alan. > > www.theatreorgans.co.uk > www.virtualtheatreorgans.com > Admin: ConnArtistes, UKShopsmiths, 2nd Touch & A-P groups > Shopsmith 520 + bits > Flatulus Antiquitus > > > ----- Original Message ----- > From: JGardner > To: Serge Krul > Cc: CSS List > Sent: Tuesday, October 07, 2008 4:45 PM > Subject: Re: [css-d] IE position problem > > > Thank you! > > I do have a question though. I thought by setting the padding and margin to > 0 in the body that it removed all margins through out the document. I am > surmising from the fix you sent below that is not true. Can someone clear > this up for me? > > Thank you, > Jennifer > > JGardner Designs > Creating your e-Presence > www.JGardnerDesigns.com > > ______________________________________________________________________ > 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/ ______________________________________________________________________ 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/