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

HTML How to Make a Website Responsive Web Design and Testing Refactor the Layout

Gaurav Mishra
Gaurav Mishra
4,388 Points

code 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

Hi 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
Gaurav Mishra
4,388 Points

thanks 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
Gaurav Mishra
4,388 Points

Jeff 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){ }

The last one. This is an important distinction to remember with css. It is easy to "overwrite" a rule previously written.