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 trialakinkulhanbey
3,239 PointsAdding CSS
Hello,
I really didn't understand what they are asking by "Add CSS that will allow all images to fill their parent element." I would be glad if one of you could explain that and how I can solve the task. Thanks a million in advance.
best regards ak
1 Answer
Stone Preston
42,016 Pointsyou need to add a css selector that will select images and then make those images fill their parent element with a CSS rule
you can select the images using the img
selector
img { }
and you will have to use the max-width
attribute rule and set that using a percentage to make them fill their parent element