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 trialHowie Yeo
Courses Plus Student 3,639 Points2-COLUMN: Portfolio list item not vertically align top. 3-COLUMN: portfolio list item not clear left
Hi guys, Im having a very frustrating issue, it seems like code is exactly same as tutorial but my portfolio list item does not align vertically to the top (in 2-column layout) AND the 4th list item does not clear left. Please help!
@media screen and (min-width: 480px) {
/******************************* TWO COLUMN LAYOUT *******************************/
#primary { width: 50%; float: left; }
#secondary { width: 40%; float: right; }
/*******************************
PAGE: PORTFOLIO *******************************/
#gallery li { width: 28.3333%; }
#gallery li:nth-child(4n) { clear: left; }
}
1 Answer
Luke Terzich
5,193 PointsHello Pal, when you say it does not align vertically what do you mean? What is it doing?
Howie Yeo
Courses Plus Student 3,639 PointsHowie Yeo
Courses Plus Student 3,639 PointsHello! Sorry I have found out the issue. It was my error on the index.html (duplicate <li> </li>) Appreciate your response!