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;
}

Style definitions of the universal selector apply to all elements.

Figure: Style definitions of the universal selector apply to all elements.

  

 

 

 

back to top