Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Basic Selectors Basic Selectors Review

2 Answers

Eric Miller
Eric Miller
2,382 Points

A universal selector is defined with an asterisk (*). So

*{margin-left: 5px;}

would add a left margin to EVERY element on the page. It's also implied in the rest of your selectors. So when, for example, using a class selector, the browser recognizes you're asking for EVERY element of that class to be affected. So

*.class{attribute:value;} = .class{attribute:value;}