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 trialJose Agrelot
13,416 PointsNormalize.css
Is using a normalize.css file typical? Is there a resource that provides updated versions? I'm assuming that this type of thing periodically needs to be updated as frequently as browser versions. Also, is the sole purpose of this to ensure that the code "plays nice" with the browsers listed in the normalize.css file?
2 Answers
geoffrey
28,736 PointsDon't forget to use the search function, this question has already been asked & answered. Check this post for answers. Happy coding !
Kevin Korte
28,149 Pointsgeoffrey is correct, that link will answer your questions about normalize. What that link doesn't answer is updated versions. That's where the three commands at the bottom where it says npm install
, component install
, bower install
come into play.
These three commands are part of dependency managers. Depending on the dependency manager you are using, you would use that command in your command line interface, and it would download the normalize.css file, and add the file to your project. You could than link to that file in your project. If that file gets added to the package.json
file that usually is part of the dependency managers ecosystem, than when you run a simple update command on the CLI (command line interface) it will check if you have the most recent version of normalize installed, if not, it downloads and installs the most recent version for you. You can of course do this with lots of things, so one simple update command can check if jquery, normalize, some 3rd party jquery plugin, foundation, etc are all up to date.
I'm most familiar with Bower