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.

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
218,692 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
218,692 Points

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