selector groupsExplanationThe group selector is not really a selector, more a shorthand way of giving the same style properties to several types of element at once. You might want every heading to be in a particular font, even though individual heading levels will be different sizes. This shorthand eliminates the tedium of recreating the same set of properties several times, with the attendant risk of mistake. It also makes for very efficient editing - if you want to change the font for all your headings you need only do it once, rather than for each individual level. SyntaxA selector group is simply a list of selectors separated by commas. The selectors in the list can be any CSS1 or CSS2 selectors. For example, a selector group that assigns the same font to each type of link (see pseudo class selectors above) is: a:link, a:visited, a:active, a:hover {font: Times serif} UseSelector groups are useful for ensuring that any sets of elements which you want to share the same properties in fact do so. By grouping like elements together you minimize the possibility of mistakenly assigning the wrong properties or values. It is also a useful time saver, both in initially setting the properties of an element, or when editing those properties, as repetition is minimized. Browser supportDetailed browser support information for this feature can be found in the full version of the Westciv CSS Guide, or in our CSS Browser Support Table. next: dynamic pseudo class selectors(C)1997-2001 Western Civilisation Pty. Ltd. |