Universal Selector

From CSS Discuss

Jump to: navigation, search

Introduction

"*" is the universal ((selector)), meaning that it includes all elements. Example:

  • {font-family: Arial;}

Uses of Universal Selector

Force an extra level of containership: div * p {font-size: smaller;}

This selector refers to paragraphs within divisions, as long as they are not the immediate children. In other words, it applies to
...

, but not to

Personal tools