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 1

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 have this @media screen and (max-width : 705px) .grid_1 { width: 15.625%; } /* 125px/800px = 15.625% / .grid_2 { width: 32.5%; } / 260px/800px = 32.5% / .grid_3 { width: 49.375%; } / 395px/800px = 49.375% / .grid_4 { width: 65.625%; } / 525px/800px = 65.625% / .grid_5 { width: 83.125%; } / 665px/800px = 83.125% / .grid_6 { width: 100%; } / 800px/800px = 100% */ width: 100%; }

4 Answers

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

Excellent, cheers for your help Adam Sackfield

No probs if works then click the tick and upvote to close off

Kyle Brooks
Kyle Brooks
6,753 Points

worked for me too! thanks!