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 trialvijay chekuri
1,791 Points@ media query is not working .
i got this code
@media screen and (min-width:480px) {
#primary {
width:50%;
float:left;
}
#secondary {
width:40%;
float:right;
}
#gallery li {
width:28.3333%;
}
#gallery li:nth(4n) {
clear:left;
}
}
actually with out gallery part my site is working properly . but it supposed to work with gallery part . is there anything that i can do ?
1 Answer
Ali Amirazizi
16,087 PointsYou are missing the "-child" for your pseudo class. I should say:
#gallery li:nth-child(4n) {
clear:left;
}
Britton Zirkle
Courses Plus Student 15,005 PointsBritton Zirkle
Courses Plus Student 15,005 PointsHi Vijay
can you expand in greater detail on the specific problem you are having. It would also help to see all of your code.