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

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;