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 trialWhitney Yao
1,642 PointsCan our big image be flexible with the browser window just like the wrapper we add is?
The element "div" we add, the wrapper, can fit perfectly inside the browser window if we use max-width and margin decoration in "main.css" file. But can the big images inside the body also be flexible to the browser window?
1 Answer
Sam Baines
4,315 PointsHi Whitney - yes they can, you can use the exact same css rules to make the <img> tag responsive/flexible to either the body element or the parent element, such as the class or ID = wrapper. Just use the properties of width or max-width along with a percentage value to make this happen.