Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,360 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.