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
Ahmed Qureshi
717 PointsFloat:left property is not working?
<li> <a href="img/numbers-04.jpg"> <img src="img/numbers-04.jpg" alt="audi"> <p> A project for BEST wallpaper</p> </li> </a>
gallery li {
width: 28.33%; }
gallery li:nth-child(4n) {
clear: left; } I am using total 6 images but when i adding li:nth-child property to responsive.css it doesn't work. I even dowloaded the project files it works in project files but when copy and pasted entire coded it doesn't
2 Answers
Ahmed Qureshi
717 PointsAha got it i was closing anchor tag after li <a href=...................... <li> </li> <a/> here is the right one <a href="img/numbers-04.jpg"> <img src="img/numbers-04.jpg" alt="paper"> <p>Drips created using Photoshop brushes.</p> </a> </li>
Ahmed Qureshi
717 PointsI would also like to know the alternative solution of this problem. because this css property doesn't and it lead us to waste time searching here n there