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 trialJason Causey
2,686 PointsStuck on task 2
Just dont know how to do this one. I tried this code:
.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12{
max-width: 100%;
}
2 Answers
Jason Causey
2,686 PointsI got it now. Nevermind
Nick Pettit
Treehouse TeacherHi Jason,
It's actually much simpler than that. You need to add your CSS code inside of the media query. The code provided should look something like this:
/* Mobile ----------- */
@media screen and (max-width : 480px) {
}
The instructions state the following: Add the appropriate CSS code to the media query so that ".contact" and ".menu" fill the entire container width when the device or browser width is at most 480px wide.
Put another way, you should only need to select the .contact and .menu classes. Once you've selected them, you want to apply a width (not max-width) of 100%. That's because, when the browser is at 480px across, you want to use up as much of the screen as you can and not waste any space, so you'll always want those elements to be at 100% width.
So, with those tips, do you think you can figure it out? :)
Jason Causey
2,686 PointsHey! Dang I didnt expect to get help from the celeb! Yes I figured it out that it was much more simple than I thought. Im now stuck on task 2 http://teamtreehouse.com/library/content-defined-breakpoints
I am not sure how to write the code for the img.
Nick Pettit
Treehouse TeacherCan you post your code from the first task? That would help. :)
Jason Causey
2,686 PointsI got it thanks