Hi,

In CSS there are properties that are inherited (such as the font-family
property) and some that are not.
Padding is not inherited [
http://www.w3.org/TR/CSS21/box.html#padding-properties]<http://www.w3.org/TR/CSS21/box.html#padding-properties>
To zero padding on all elements you could use the star selector:
* {
 padding:0;
}

but it is not recommended, because browsers have defaults for a reason.
If you want to do a proper styling reset you should check this [
http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ ] first.

I personally don't like these global resets. There are certain elements
(such as lists headings and paragraphs) that I'm always aware of their
defaults, but generally I'm fine with the rest of them.

Serge Krul


> _____________________________________________________________________
> 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/

Reply via email to