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.


Is there some CSS file I can import that will guarantee that my website looks the same on all browsers?

Or maybe a Javascript file that would do that

1 Answer

Dane Parchment
Dane Parchment
Treehouse Moderator 11,023 Points

Sort of....you see you can use a css reset file to make sure that in general your styles are consistent across browsers. But the moment that you start adding your own css rules, you will have to make sure that those new rules are consistent across browsers as well.

Here are a few css-resets that are quite popular:

Bootstrap Reboot - This is the github file for it, I recommend you look up more about this one. But it is the most recent, adheres to html5 and css3.

NormalizeCSS - Very popular and probably the most used (may change with Reboot being out now), adheres to html5 and css3.

The Oldie - Pretty sure this was one of the original css-resets, adheres to html5, but doesn't have the most up-to-date css3 practices (no box-sizing for example), still decent if you aren't using many of the html5/css3 features.

You can also create your own reset, if you want all of your pages to look a very specific way that the general resets don't provide for you.