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.

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

Antoine DuBois
Antoine DuBois
3,130 Points

my images are not displaying side by side

#gallery li {
  float: left;
  width: 45%;
  margin: 2.5%;
  background-color: #f5f5f5;
  color: #bdc3c7

Hi Antoine,

How are they displaying?

2 Answers

It seems to work for me. http://jsfiddle.net/WB5UX/1/

Maybe you messed up <code>id</code> and <code>class</code> or something similar. Check to see if the references are right, If you can see the background on the <code>li</code> you know your referrals are right. Double check your code and see if something doesn't seem right.

Isaac Asante
Isaac Asante
4,752 Points

Hey Antoine, in your code, you forgot to validate your last declaration with a semicolon after your value: color: #bdc3c7

It should be color: #bdc3c7;