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 Style the Image Captions

how automatically height of image is being set up? explain me how it is adjusting.

how automatically height of image is being set up? explain me how it is adjusting.

1 Answer

Gabriel Kartak
Gabriel Kartak
5,399 Points

I'm not quite sure that I understand your question, but: The height and width of images are proportional to each other, so if you resize the page or the images, the height will adjust based on the width. If the width becomes smaller, the height will also become smaller.