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

HTML Build a Responsive Website Adaptive Design Implementing Media Queries

What is fluid layout?

How can we make images scale with fluid layout any one explain the fluid layout with detail?

7 Answers

Code Challege wants you to make all images on the site scalable. You would have to add this to your script good luck.

img { width: 100%; }

Without writing a whole report on how to make images scale, your current course and the "Build a Responsive Website" course should give you a better understanding of how scalable images and fluid/responsive design work together.

In short fluid layouts adjust to the browser's viewport. Webpages and content resizes to fit different screen sizes and allows more flexibility for everyone trying to see your site.

and how can i code it

The Responsive Design stage can show you how.

This stage is very difficult to understand some thing understand and more then not

Add the appropriate CSS code to the CSS to make images scale with the fluid layout i am stuck in this code challenge cant understand i am trying @media screen and (max-width : 480px) { .cupcake img { display: none;}
}

@media only screen
and (max-width : 480px) {
     .cupcake img { display: none; }
}

Your sample states that if the viewport is at 480px or smaller the image with the class cupcake will not be shown. Basically no image to scale. You may need to change the display: none; part to something else =).

what can i do for passing this challenge

may be i need to put something like this grid_1,grid_2......grid_12

So basically the challenge is asking you to make the image with the class of cupcake scalable. Right now the example you gave sets the image not to show. In order to make an image scalable you would have to change its width to a percentage. From the video you watch this should be pretty straight forward.

Hint display:none; should be changed out to something else. I would love to just give you the answer but it only gets more difficult in later exercises if you don't understand this. If you don't get it take a break, come back to it at a later time if necessary. I had to do that and watch the video a few times before I got it. It pays off though trust me.

cant finding any thing i am completely stuck on this question please help me