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 Flexbox Layout Building a Layout with Flexbox Building a Navigation Bar with Flexbox

Pawel Sysiak
Pawel Sysiak
3,920 Points

Should I use normalize.css?

I am going through Web Design track on Treehouse.

In the first course "How to make a website" Nick suggested using normalize.css Now I am completing Flexbox course and I have noticed that Guil is not using it. I am going to start building my first real website and I am confused weather I should use normalize.css or not. I noticed that Guils videos are more recent than Nicks and I am wondering that maybe this the method of the past and no longer in use. Will appreciate any help with that.

3 Answers

You should always use normalize.css... As this video aims at teaching the basics of flexbox, it's not used here. But when you're building your own project, using a CSS reset is a must as it removes most of the browser inconsistencies and helps you get a wide browser compatibility.

Happy Designing !!!

Nick Yoho
Nick Yoho
6,957 Points

I would use it, just make sure you are using the latest version of it (https://necolas.github.io/normalize.css/)

nico dev
nico dev
20,364 Points

Hi! I guess we're doing a similar track.

It is really helpful to use it. However, always check the notes of each version in the changelog file here, to make sure if you need to change something.

For example, another user noticed earlier that the latest version (6.0) removed the reset from the body margin and that it is needed that either you use an earlier version of normalize, or otherwise you reset that margin yourself (you can edit the normalize or do it in your style.css).

Also, if you read the 'issues' tab in the same page linked above, you'll find some interesting discussions going on with regards to the mentioned body margin issue and others. It's also a fantastic way to learn from people who knows a lot.

Keep it up! :)

Moderator Edit: Moved response from Comments to Answers.