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

When following along with the video in workspace, i'm unable to get my images to display in 2-columns.

I've setup the #gallery and I've been unable to have the images displayed into two columns. I've tried to add the same comments as referenced in the video but I can't get it to work. The TWITTER and Facebook a showing in a column.

2 Answers

Owa Aquino
Owa Aquino
19,277 Points

Hi Quentin,

It would be best if you add your code here so we can check it out. I'm guessing you're styling your CSS. There are so many style attribute to use on your #gallery to make them display 2-column side by side. You can use position, floats, flex-box(you'll learn in the future course). But the best or easiest for me is to use floats

Using Floats:

#gallery img {
float: left;
}

hope this help! cheers!

I had the same problem,check your HTML code,I had one error,right after first <li> element I closed the list(</ul>) and those changes in CSS sheet had no effect on other pictures.So just check your html code,you may have similar issue..Hope it helps