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 Portfolio

Matthew Keys
Matthew Keys
1,922 Points

Problem with spacing of images

My images do not grow and shrink to make up 45%. When i make it smaller, it goes smaller (all the images get squished so that i can see all 5 of them). And when i make it bigger, the images do not take up as much space as it does in the video

Luis Magaña
Luis Magaña
13,042 Points

A snippet of your code would be helpful.

hi, make sure you are applying the 45% to the correct containers.

Evan Agee
Evan Agee
13,088 Points

Could you share your code? It could be a browser issue or code.

Double check with this answer by Dave McFarland https://teamtreehouse.com/community/margins-and-image-sizes. Make sure your CSS is under the correct selector, make sure you end each CSS declaration with a semi-colon, and that your image has the correct class in the HTML.

2 Answers

Matthew Keys
Matthew Keys
1,922 Points

How do I post a snippet?