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

Allison Parker
Allison Parker
933 Points

Pictures are not showing up in two columns

I did everything that was instructed but when I preview the web site it still shows everything in one column and the images will no change sizes.

Here is a link to my code, https://w.trhou.se/fg8f1i7ttx

Shaun Byrnes
Shaun Byrnes
4,730 Points

On line 20 in your code you have a rule that targets image. I believe you want to target all the img elements so use img instead.

2 Answers

James Hall-Treworgy
James Hall-Treworgy
3,326 Points

Hello! :)

In your css sheet you have image {} when it should be img {}

Also in index.html the id="gallery" is altering the wrong tag should be down further in the next ul tag.

Let me know if I need to be more clear! :D

Allison Parker
Allison Parker
933 Points

I changed image to img but that didn't do anything.

I'm not sure were the gallery ID should go in the ul tag.

Allison Parker
Allison Parker
933 Points

That fixed it, thank you.