Why not reset CSS to use an asterisk?

Possible duplicate:
(why) is a CSS starlet selector considered harmful?

I noticed that many CSS developers reset fields, fonts, and additions to a large number of HTML elements, explicitly declaring them all at the beginning (for example, versions of Yahoo and meyerweb). So I ask myself: why not just reset globally to use *? I know this violates the layout for some elements, such as buttons and locks, but they can be easily reset, which is necessary if you really want to reset the layout, because the buttons have different looks in all browsers.

+4
html css reset
source share
2 answers

I think that you just answered yourself - these are not simple buttons for restyling and form, because all user agents have a very specific style focused on them.

+2
source share

I think the idea of ​​targeting specific controls was to increase productivity. Apparently, the selector "*" is very expensive. Otherwise, I do not believe using something like below will have a big impact other than performance (which is debatable, I suppose)

* { margin:0; padding:0; } 
+1
source share

All Articles