Why Not Reset Css Using The Asterisk?
Possible Duplicate: (why) is the CSS star selector considered harmful? I noticed that many CSS developers reset the margin, font and padding of a big number of HTML elements by
Solution 1:
I think you just answered yourself - it's not simple restyling buttons and form controls because all user agents have very specific styling catering toward them.
Solution 2:
I think the idea of targeting specific controls was to improve performance. Apparently the "*" selector is very expensive. Otherwise, I don't believe using something like the below would have much impact other than performance ( Which is debatable I suppose )
* { margin:0; padding:0; }
Post a Comment for "Why Not Reset Css Using The Asterisk?"