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 Build a Responsive Website Adaptive Design Implementing Media Queries

Add the appropriate CSS code to the CSS to make images scale with the fluid layout.

No clue how to do this. Can't move on until I get this thing right...

3 Answers

Stone Preston
Stone Preston
42,016 Points

hmm. this ones tough. Ive tried

img {
    width: 100%;
}

as well as

img {
    max-width: 100%;
}

and it keeps saying its not scaling with the browser, but when I preview it and change the browser size it scales fine. Im guessing you tried something similar correct?

Thaaaaank you. Much appreciated.

Stone Preston
Stone Preston
42,016 Points

wait did it work for you? none of those worked for me. maybe something was going on with the challenge engine or something

I tried your first suggestion (img width=100%) and it worked. I didn't try your second suggestion (max-width).

Stone Preston
Stone Preston
42,016 Points

hmm weird. yeah I just tried it again and it worked. strange. well, sorry I gave the answer away. normally I try not to do that and let you figure it out on your own