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 trial

HTML How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

Michael Ogunmosunle
Michael Ogunmosunle
3,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.

Please help!

2 Answers

Steven Parker
Steven Parker
231,198 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.

Steven Parker
Steven Parker
231,198 Points

Josue, he already has the code in his project. He was just confused about the editor flagging errors on some lines.