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 trialGaurav Mishra
4,388 Pointscode is not working
@media screen and (min-width: 480px) {
#gallery li {
width: 28.3333%;
}
}
this is not accepted and i am getting bummer.
3 Answers
Jeff Busch
19,287 PointsHi Gaurav,
Try refreshing your browser? I copied & pasted your code into the code challenge (challenge 1) as is, replacing the code that was there, and it passed. So the problem isn't your code.
Jeff
Gaurav Mishra
4,388 Pointsthanks Jeff Busch for replying.
it was mistake from my end. Actually i was adding new media tag in the middle of css file but just now i realized there is already a media tag in the end of main.css.
Gaurav Mishra
4,388 PointsJeff Busch one question here...which media tag will take precedence first one or the last one in CSS file if they are same, example: @ media screen and (min-width: 480px){ }
Jeff Busch
19,287 PointsThe last one. This is an important distinction to remember with css. It is easy to "overwrite" a rule previously written.