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

Stuck on task 2

http://teamtreehouse.com/library/websites/build-a-responsive-website/adaptive-design/implementing-media-queries-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

I got it now. Nevermind

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi 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? :)

Hey! 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
Nick Pettit
Treehouse Teacher

Can you post your code from the first task? That would help. :)

I got it thanks