Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
221,328 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