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

CSS How to Make a Website Styling Web Pages and Navigation Style the Portfolio

Piers FC
Piers FC
10,402 Points

When styling the images in the gallery so they appear in two columns, my footer information comes to the top.

I believe I have undertaken everything as suggested and I have got to the stage where I am styling the images in the gallery starting with changing their width to 45% so they appear in two columns.

However when I implement this change, instead of getting two columns, I get the left hand column with images and have the other column filled with my footer information (twitter and facebook logo) at the top of the right hand coloumn.

anyone know why this may be happening and how to change it?

2 Answers

Razvan Balosin
Razvan Balosin
2,383 Points

It would be great if you could post your CSS here. Have you set the margins on '#gallery li' to 2.5%? Also, have you set the clear on footer to both? footer {clear: both;}

Piers FC
Piers FC
10,402 Points

Hi Razvan

Havng seen your answer I have just realised that I made a really stupid and simple mistake and I have just changed it now and it works

Thanks