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 trialPanagiotis Papavramopoulos
2,457 PointsUniversal Selector or Normalize File
Can we use universal selector instead of a normalize file?
3 Answers
Nathaniel Nasarow
10,291 PointsUsing 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.
Alexander Mooney
7,321 PointsAlso, 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
2,457 PointsThank you very much! Your answers was very helpful!
xaviermasse
12,711 Pointsxaviermasse
12,711 PointsThe normalize file is standard and considered a much better practice.
Universal selector should only be used when absolutely necessary.