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 trialMichael Ogunmosunle
3,027 Pointsnormalize.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.
Please help!
2 Answers
Steven Parker
231,198 PointsWhat 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é Rodriguez
Front End Web Development Techdegree Graduate 24,118 PointsAlternatively you can also just grab the code directly from https://necolas.github.io/normalize.css/
Steven Parker
231,198 PointsJosue, he already has the code in his project. He was just confused about the editor flagging errors on some lines.
Michael Ogunmosunle
3,027 Pointsappreciated bro!
Michael Ogunmosunle
3,027 PointsMichael Ogunmosunle
3,027 PointsThank you very much! .