Wednesday, August 27, 2008

Selector Grouping

Selectors can be grouped by separating selectors with commas, a single declaration block can apply to multiple selectors.
Example: p, div {background:#000000;} .

The asterisk (*) is called the universal selector. The universal selector matches all the elements of a document.

No comments: