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
DeAndre Filer
1,967 PointsCSS HELP. I am having trouble with the float property. In my css code i cannot get the images to float side by side.
3 Answers
Colton Ehrman
Courses Plus Student 5,859 PointsYou just need to check your selectors... you have
#gallery {
margin:0;
padding:0;
list-style: none;
}
#gallery{
float: left;
width: 45%;
margin: 2.5%;
background-color: #f5f5f5;
color: #bdc3c7
}
Which both select the same thing. You need to change the second one
Colton Ehrman
Courses Plus Student 5,859 PointsThey aren't at all or like are they only floating for the first line, then it messes up?
DeAndre Filer
1,967 PointsThe images are not floating at all.
DeAndre Filer
1,967 PointsDeAndre Filer
1,967 PointsI added the list List item tag (li) and the images did are not floating side by side.