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 Build a Responsive Website Responsive Design Content Defined Breakpoints

Media Query

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.

@media screen and (max-width: 705px) { .grid1, .grid2, .grid3, .grid4, .grid5, .grid6 { width: 100%; } }

4 Answers

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

Looks like you have the class names wrong. They should each have an underscore before the number.

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

This Doesn't Work Either Emma :-(

I Have Tried Every Way That I Could Think Of, Nothing Is Working. I Have Even Tried This To Add The Container.

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

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

I would maybe try going out and back in. I copied your original code and put it in the challenge, then added the underscores and it worked for me.

My other thought is where in the css page are you putting this? You should put it at the bottom. If you put it at the top, the 100% will be set right away, and then overridden by later code.

Ok Thanks :-)