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

Can't pass second task of breakpoint challenge

I copy a pasted my code from the first question and just changed the color from navy to dark green. Can't figure out why this question continues to prompt me to check my work. See below...

@media screen and (min-width: 480px) { body { background: navy; }

@media screen and (min-width: 660px) { body { background: darkgreen; }

I think this might just be a syntax error. It looks like you need to completely close the CSS rules with another } at the end of each line.

3 Answers

I think this might just be a syntax error. It looks like you need to completely close the CSS rules with another } at the end of each line.

I tried adding another } to the end but that didn't seem to do the trick. I actually had an additional } in workspace but had to remove it in order to get the darkgreen to show at the 660px mark.

Interesting. Might be a quirk with workspaces/quizzes.

You can read more about media queries here: http://bradfrost.com/blog/post/7-habits-of-highly-effective-media-queries/

So your issue is now resolved after removing the closing curly brace?

No, the problem is still unresolved. I was just commented that in the workspace (not in the challenge) that I had to remove a closing curly brace in order to get the darkgreen to be displayed. Anywho, while taking the challenge, I can get the darkgreen to be displayed within the preview mode but I still can't pass the task.

I have had that happen. When I logged out of teamtreehouse and back in again I could pass the challenge. It also worked when I used a different browser.