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

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.