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

JavaScript Treehouse Club: JavaScript Car Sounds Background Color, Margin, and Padding

Why did the page continue to adjust the size of the pics even when the meta name="viewport", etc. was deleted?

HTML meta tag, attribute name or content automatic scaling of page to window or screen

1 Answer

I see that u are confused..let me explain. The meta viewport tag allows you to adjust ur website's size according to various screen sizes...but it doesnt include images

The responsiveness of images lies on 'max-width'..if u set 'max-width' to 100%...Then ur images will scale down and up even without a viewport tag

img {
  max-width: 100%;
}

This code will make all ur images responsive. Mark my answer as the best if i managed to help u