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

Please help me kindly with this CSS code challenge

I don't understand what to do this code challenge and got completely stopped.Please kindly help me.Here is the link: http://teamtreehouse.com/library/build-a-responsive-website/adaptive-design/implementing-media-queries

2 Answers

Adam Greenough
Adam Greenough
7,742 Points

Hi Shuddha, which task is it you're having problems with?

Adding code redacted solves the first task. This is because it makes the image fill 100% of its container, as the container is fluid, it makes the images fluid also.

Adding code redacted to the 480px media query at the bottom of the CSS will solve the second task, for the same reason as above, just applying it to the contact and menu divs rather than images.

For the third task, put code redacted in to the media query. This selects all images in the .cupcake div and sets their 'display' to none, hiding them.

Don't just copy and paste those answers in, make sure you understand what they do before moving on, perhaps revisit the video but I know how frustrating it is being stuck on a quiz. Haha.

Best of luck. :)

James Barnett
James Barnett
39,199 Points

Adam Greenough - I've removed your code. Remember our goal here on the forum is give help not answers.

Here on the forum we like to explain the process, and help guide users through understanding the problem. You've got a pretty good start with that now, I think your explanations can stand on their own you without the need to give away the answers.

James Barnett
James Barnett
39,199 Points

Shuddha Chowdhury - To help us better help you we need to see the code you are using. For some tips on how to do that, check out the tips for asking questions video located in the right hand sidebar.