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

General Discussion

Code Challenge content defined breakpoints

I have been trying to to complete the first step that is "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." I wrote out the media query @media screen and (max-width:705px){ before the grid. Can someone help me with this?

2 Answers

You've made the right media call, but I'm not sure what you're trying to apply as your rule. It should look like:

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

Hopefully that makes sense? If not, let us know!

I am simply not passing with my code. What am i doing wrong?

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

UPDATE: So removing a whitespace between ...705px) {... worked like a charm!