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 Write CSS Media Queries

Responsive web design and testing, challenge task 1,stage 8

I am being asked to create a break point for devices 480px and larger and inside that point, color the body background 'navy'. It is only giving me the option of putting it in the css/main.css file. I was under the impression that it should go in a css/responsive.css file but I can't create a new file in a challenge, can I? The code I would use is...

@media screen and (min-width: 480px) { body { background: navy; } }

Should this really go in the css/main.css file? Am I totally misunderstanding the task?

Thanks, Matt

2 Answers


It doesn't matter what the name of the CSS file is; all CSS files are read the same. I'm not sure how to videos are set (I skipped them), but having a main.css and responsive.css file would just be for organization's sake, nothing more.

Got it, much appreciated. I was on the right track except for one missed tap on the space bar.