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
Martin Scott
1,755 PointsI Don't Understand what I'm doing wrong in Code Challenge
I am doing the code challenge: Inside the media query, clear the left side of every 4th list item in the gallery
I have been to the Media query difficulties web page. I have experimented with ALL of the peoples (usually) helpful answers with no luck.
Now the error message is "Bummer! Be sure to only clear the left side of the list items when the device is 480px wide or wider.
Jason Anello
Courses Plus Student 94,610 PointsHi Martin,
I've re-tagged your question as CSS so you'll get the right people looking at it.
To get the quickest most helpful response you should post the code you're trying as well as a link to the challenge you're on in case anyone needs to review it.
Here's a thread that will show you how to post code properly in the forums: https://teamtreehouse.com/forum/posting-code-to-the-forum
Brent Cralley
18,541 PointsHey Martin,
Are you using the "nth-child(4)" property in your CSS to select every 4th item in the (I'm assuming) list?
Hope this points you in the right direction!
-Brent
1 Answer
Martin Scott
1,755 PointsThanks for your help and answers.
What worked for me is
gallery li:nth-child(4n) {clear: left;}
I THOUGHT that I had attempted this already. I see other people had posted this in the forum. I was answering this question at the end of my day, my frustration and fatigue levels were high.
Robert Manolis
Treehouse Guest TeacherRobert Manolis
Treehouse Guest Teachershow the code you've got