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.

CSS CSS Grid Layout Going Further with Grid Layout Adjust the Grid with Media Queries

Nik Oaks
Nik Oaks
7,150 Points

Media Query Syntax

Whenever I have made a media query, the media feature is always highlighted red. Which at this point I just ignore it because my code still runs correctly, anyhow could somebody explain why this happens and if it is browser specific.

1 Answer

Steven Parker
Steven Parker
216,810 Points

If you're working in the workspace editor, the syntax coloring is being done by the workspace. While red is typically used to indicate an error, it's possible that you are using a technique that is newer than the syntax coloring mechanism.

If you'd like a more definitive answer, you could make a snapshot of your workspace and post the link to it here.