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

HTML Build a Responsive Website Responsive Design Content Defined Breakpoints

Your console won't see my css

Tells me I'm not setting the width of the grids to 100%.

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

3 Answers

Hi Mario,

Add a space between and and (max-width 705px)

Jeff

@media screen and(max-width: 705px)
@media screen and (max-width: 705px)

Thanks. That did the trick.

Trent Burkenpas
Trent Burkenpas
22,388 Points
@media screen (max-width: 705px) {
     width: 100%;
}

THis should work

i do not think you need to call the grids

James Barnett
James Barnett
39,199 Points

Trent Burkenpas -

> i do not think you need to call the grids

In this question they explicitly mention the grid classes.

> 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.


Maybe you are thinking of a different question. There's a question in this course that mentions fluid image widths where the answer is max-width: 100%.