Understanding the universal selector

The universal selector selects everything in your document, the same way the "wild card" selector does in Linux. However, when you include the universal selector as part of a larger complex selector, confusion sets in. How exactly does the universal selector work?

By Jen Kramer
June 2, 2016
Universal selector Universal selector

Learn the ins and outs of CSS with CSS: The Definitive Collection, a series of short and practical ebooks taken from the upcoming book CSS: The Definitive Guide, 4th Edition.

Learn faster. Dig deeper. See farther.

Join the O'Reilly online learning platform. Get a free trial today and find answers on the fly, or master something new and useful.

Learn more
Post topics: Web Programming