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 trialJill Hawley
736 PointsAdd 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
231,269 PointsThe 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.
Jill Hawley
736 PointsThanks so much! It appears to be a glitch that corrected itself. It definitely didn't hurt to have extra practice :)
Derick Moncado
23,259 PointsTry ``` img { width: 100%; height: auto; }
This will scale the images within their respective parents container.
Hope this helps!
Jill Hawley
736 PointsThank you! It seems to have corrected itself :)
maria arango
501 Pointsi do not get this question at all please help
Sergey Podgornyy
20,660 PointsSergey Podgornyy
20,660 PointsPlease share your code