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 trialmirko pahnke
3,499 Pointscan't get the code right for this challenge
CSS Selectors:
Challenge Task 2 of 3
We want three floated images per row. In the media query, create a pseudo-class selector that targets the fourth img child element first, then every third img that follows. Then, add a clear property that clears the left float.
mirko pahnke
3,499 PointsHow can i include my code from the challenge, there is no option in here..
2 Answers
Luke Glazebrook
13,564 PointsHi,
I see that you needed some help including your code. Including code in the Treehouse forums is really simple and there is a great little group on how to do so available in the 'Markdown Cheatsheet' which you can find just below the box that you post a comment into.
-Luke
mirko pahnke
3,499 PointsThank you Luke got it now and passed the challange, i forgot to set the + sign between 3n and 4 (:
/* Write the CSS in the media query below */
@media (min-width: 607px) {
img {
float: left;
}
img:nth-child(3n4) {
clear: left;
}
}
```/* Write the CSS in the media query below */
@media (min-width: 607px) {
img {
float: left;
}
img:nth-child(3n+4) {
clear: left;
}
}
Julian Gutierrez
19,201 PointsJulian Gutierrez
19,201 PointsCan you include your code/attempt to see where you went wrong?