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

Content Defined Breakpoints Challenge 1 problem

I'm stuck in this challenge, here's my code:

@media screen and (max-width: 705px) {
  .grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6 { width: 100%; } 
}

The intructions are:

Write a media query at 705px where the layout begins to break, that forces grid_1 through grid_6 to span 100% width of the container.

What em I doing wrong? Thanks :)

2 Answers

Hello, OK I found the issue. The problem was that I've written the media query on the top of the .css file. It should go on the bottom.

That doesn't really matter,

You've added an accolade (or swirly bracket) to much at the end.

It mattered on the challenge, perhaps not in general. The accolade on the end was to close the media query.

Ok my bad,

Strange that it let me pass?!

.