Posts Tagged ‘CSS’
CSS2: The Universal Selector
Here’s a cool CSS2 selector that is often overlooked or not understood: *
It’s called the universal selector and is very powerful. It acts like a wildcard, is denoted by an asterisk and affects all available elements.
The universal selector can be combined with other selectors to style the descendants of a particular element or skip a level of descendants. This can be particularly useful when you have to support some older browsers that don’t implement CSS the same as other browsers – such as IE 6.
Posts