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!
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
Michael Ogunmosunle3,027 Points
normalize.css file appears to have errors
I've downloaded the files as requested, when I was typing in code into the main.css file my code was not working in my browser.
I searched my own code and theyre didnt appear to be anything wrong, I clicked into the normalize.css and saw that some parts of the code was highlighted in red indicating an error e.g. zoom on line 35.
Steven Parker228,026 Points
What you're seeing is a trick to support older browsers.
A property beginning with an asterisk (
*) is a deliberate syntax error, intended to be ignored by modern browsers. Some older browsers would ignore a bad character and use the line anyway, which is exactly why these lines have been included by the creators of normalize.css.
So your file is fine, it's just that the syntax highlighting of the editor is just showing the intentional error.
Josué RodriguezFront End Web Development Techdegree Graduate 24,118 Points
Alternatively you can also just grab the code directly from https://necolas.github.io/normalize.css/