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

Derek Ward
seal-mask
.a{fill-rule:evenodd;}techdegree
Derek Ward
Front End Web Development Techdegree Student 8,165 Points

Responsive Design > Code Challenge: Content Defined Breakpoints

I hate to say it but i always get stuck on the first code..... "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've tried every combination I can think of..... If anyone can help I would really appreciate it.

HTML .grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6 { max-width:100%; margin-right: 1.25%; float: left; display: block; }

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

1 Answer

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

This is all that you should have to add to the CSS file (at the bottom) do not change anything in the html file