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

Gallery pics are over flowing

My gallery pics are seemed to be overflowing the gray containers.

billy bob
billy bob
6,607 Points

have you set the image width in the CSS rules?

1 Answer

Darrell Conklin
Darrell Conklin
21,988 Points

in your css file set the image width to 100% of it's container

I'm not sure what the instructions were in this course its been a while but here is an example.

#gallery img {
  width: 100%;
}