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

Design

Marius Totea
Marius Totea
2,239 Points

My pictures are not resized like in the video

I'm following the video and I have tried to understand why my pictures won't resize when I'm trying to change the dimensions of the window.

This is a snapshot of my code so far: https://w.trhou.se/zskznfl666

1 Answer

Hi Marius,

You gave your images a max-width of 100px which means they can never be more than 100px wide.

img{
  max-width: 100px;
}

It should have been 100% so that they'll take up all of their container.

Marius Totea
Marius Totea
2,239 Points

Thank you very much for the help. I didn't observe that I putted 100px there.