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

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

Nik Oaks
Nik Oaks
8,056 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
231,269 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.