CSS Short Hands
webhostingsearch.com
webhostingsearch.com
I was rather underwhelmed by this article. Shoddy editing (is it "short hand" or "shorthand"?), oversight in code (missing the "margin:" declaration in the first tip), and unnecessary digs at Internet Explorer ("Of course, IE needs a little help ..."). Plus, many things on this list are not shorthand. #10 explains how to implement transparency, #11-15 are pseudo elements, and #18-20 are CSS3 properties.
* { margin:0; padding:0; }
Every single element rendered would be affected by this, especially if there are more rules in the global wildcard like font-family, border, color etc.Nearly every page on Yahoo uses an expanded form of the above to reset and standardize margins, borders and padding across browsers. In fact, we give it away for anyone to use: