Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Styling Web Pages and Navigation Style the Image Captions

My pictures are not in 2 columns, plus some of my h's have disappeared . https://w.trhou.se/iobylq3kbk

Please help

2 Answers

Aiden Campbell
Aiden Campbell
6,618 Points

Hey Ismael there's lots of ways to complete wat you are doing, I'm not a fan of floats so I added a gallery class to all of your <li> elements containing photos. I then used: .gallery { width:49%; display:inline-block; margin:0 auto;
}

You can also do this using floats by using the same parameters that are used earlier on in your project. However be sure to clear your floats after using them if you go down that rout.

can you plz send me a snapshot of where you put what plz thx 4 ur help dude

What do you mean by "I added a gallery class to all of your <li> elements containing photos."? please explain I'm retarted lol.