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
Manuel Parra
4,064 Pointsi did applied float property in my css, but my images are not shown side by side
gallery {
margin: 0; padding: 0; list-style: none; }
gallery li {
float: left; width: 45%; margin: 2.5%; background-color: #ffb6c1; color: #bdc3c7; }
2 Answers
jeremywhiteford
17,382 PointsI don't know what this is in reference to but it could be that you haven't defined a class (or id) for the gallery.
.gallery { property: value; }
.gallery li { property: value; }
Manuel Parra
4,064 Pointsi fixed it. thank you
jeremywhiteford
17,382 Pointsjeremywhiteford
17,382 Pointsnote the "." before the class element. If you needed an id selector you'd use "#"... but it's better to use classes as they are reusable.