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
Bryan North
3,806 PointsCan'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; }
3 Answers
Jeff Everhart
21,732 PointsI 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.
Bryan North
3,806 PointsI 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.
Jeff Everhart
21,732 PointsInteresting. 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/
Joshua Holland
2,865 PointsSo your issue is now resolved after removing the closing curly brace?
Bryan North
3,806 PointsNo, 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.
Elizabeth Colvin
10,860 PointsI 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.
Jeff Everhart
21,732 PointsJeff Everhart
21,732 PointsI 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.