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 trialRonnelle Torres
5,958 PointsHow to fix this! Please help! Thanks! :)
Hi I'm currently on a CSS track and encounter some issues I believe came from the float:left; code. Photo should be separated in two columns, but one of the photo has taken two columns (I assume because of the long description of the photo) please advise.
HERE'S THE LINK OF THE SCREEN SHOT
Here's my line of code:
gallery {
margin:0; padding:0; list-style:none; }
gallery li {
float:left; width:45%; margin:2.5%; background-color:#f5f5f5; color:bdc3c7 }
1 Answer
Billy Bellchambers
21,689 PointsHI,
I believe this issues is explained and resolved in the video.
It involved using the clear: property from memory on an nth child element.
Without seeing all the code I think it was
gallery li:nth-child(3) { //may be (4) cants remember
clear:left;
}
Hope that helps