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 Intro to Selectors

Panagiotis Papavramopoulos
Panagiotis Papavramopoulos
2,457 Points

Universal Selector or Normalize File

Can we use universal selector instead of a normalize file?

The normalize file is standard and considered a much better practice.

Universal selector should only be used when absolutely necessary.

3 Answers

Nathaniel Nasarow
Nathaniel Nasarow
10,291 Points

Using a file to normalize your CSS is much better. This because it allows you to build upon a completely blank slate, rather than trying to get around the default settings.

Some plug-ins, such as Bootstrap, include normalizing in their code. However, keep in mind that if you use something like Bootstrap, you will need to learn their own CSS styles in order to implement everything the way you want. This, however, doesn't take much effort to get the basics.

Also, the universal selector selects EVERYTHING and applies the same styling to EVERY element. normalize.css specifically targets different elements and applies only the necessary CSS to override default browser settings.

Panagiotis Papavramopoulos
Panagiotis Papavramopoulos
2,457 Points

Thank you very much! Your answers was very helpful!