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 How to Make a Website Styling Web Pages and Navigation Make a CSS Image Gallery

Add CSS that will allow images to fill their parent element

Is my code correct? I already completed this the other day, but when I logged on, it started over from the previous lesson. I was correct the other day..

3 Answers

Steven Parker
Steven Parker
231,236 Points

The system might still recall your previous challenge completion. If you go back to the course overview (select "How to Make a Website" at the top), then open the steps for the "Styling Web Pages and Navigation" chapter, is the challenge icon (for "Make a CSS Image Gallery") dim, or does it have a blue checkmark?

If it's blue, just click on the first item still dim to continue where you left off.

If not, I guess the Treehouse database glitched. Just consider it extra practice, and post your answer if you need specific help. But I bet you can do it since you already did once.

Thanks so much! It appears to be a glitch that corrected itself. It definitely didn't hurt to have extra practice :)

Try ``` img { width: 100%; height: auto; }

This will scale the images within their respective parents container.
Hope this helps!

Thank you! It seems to have corrected itself :)

i do not get this question at all please help