XML technologies / CSS / CSS Cookbook / General information / Different selectors for assigning styles / Universal selector
(Excerpt from “CSS Kochbuch” by Christopher Schmitt)
Universal selectors are denoted by an asterisk (*) and apply to all elements (see the next figure). In the following example, all HTML elements therefore use Verdana, Arial or another sans-serif font:
* {
font-family: Verdana, Arial, sans-serif;
}Figure: Style definitions of the universal selector apply to all elements.
Copyright of the German edition © 2007 by O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “CSS Kochbuch” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstr. 81, 50670 Köln
back to top