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: Code Challenge

The challenge says to write a media query at 705px where the layout begins to break. It also states to set the width to 100% which I did correctly. As for the 705px the I am use is:

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

Each time I do it, it says to be sure to set the media query at 705px. Not sure what I am doing wrong

1 Answer

The problem may be with another section of your code. I just copy and pasted your exact code into the challenge and it passed.

I have not changed any of the other code and pasted it back into the styles.css and it is still not working. I pasted it into the top grid section, is that wrong?

You should add media queries to the bottom of your style page, below the rest of your styling.

Okay, thanks.

No Problem, if that doesn't work post a portion of your CSS where you put the media query and I will see if I can notice anything else.