Universal Selector in CSS2
Minal | Aug 14, 2009 | Comments 0
CSS2 had introduced a new selector, the universal selector to match any element in your page. The selector is indicated as an asterisk ‘*’. The universal selector could be used to list every element in your page.
For example,
* {font-size: 12px}
This declaration would set the font size of all the elements used in your document to 12px.
NOTE: Even though the universal selector is one handy option, consider the specificity of other selectors for it to work properly.
Filed Under: CSS Hacks, Tips and Tricks
About the Author: Minal is a freelance web and graphics designer. She specializes in designing Logos, Stationery, Graphics and Icons as well as website templates using graphical tools like Photoshop, Illustrator and Expression Web. Twitter @saffronstroke



