On 5/11/06, Micky Hulse <[EMAIL PROTECTED]> wrote:

> /* Zero-out margins and padding for all elements: */
> * { margin: 0; padding: 0; }

I used to advocate this, but have since moved on to my own version of
Faruk's initial.css:
http://kurafire.net/log/archive/2005/07/26/starting-css-revisited

I moved on after reading these paragraphs, and I quote:

---

The other thing is the use of the "star-selector," or * { } in CSS.
The star selector selects every single element, which produces an
overkill of style-nullifying. Sander pointed out that Mozilla (for
one) has a great deal of default styling on form controls, which the
star selector nullifies when applying margin:0 and padding:0 to it. As
a result, buttons don't behave like buttons anymore, and so forth. I
never really noticed that, which only goes to show that I'm no longer
used to buttons behaving like buttons. I did some research in this,
and as it turned out, most of all the weblogs I frequently comment on
have this same problem: buttons not behaving like buttons. In most
cases, it was indeed the star selector being the culprit.

Additionally, Mozilla developers have stated that the star selector
slows down things. While this is apparently not noticeable for
end-users in most cases, it may slow down other aspects that interact
with the CSS as well. And don't forget that it's definitely a bit
overkill to loop through all elements when you only have to alter a
dozen of them, roughly.

---

-- 
-- 
Christian Montoya
christianmontoya.com ... rdpdesign.com ... cssliquid.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to