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


Question 3/3 of implementing media queries

I don't understand what's wrong, I saw the other forum threads about this problem and tried the suggestions but I still couldn't fix it.

Here's my code:

@media screen and (max-width : 480px) {
.menu{width: 100%;}
.contact{width: 100%;}
.cupcakeimg{display: none;}

Just imagine each code is on a different line I have no idea why the text is all on the same line

(fixed it)

I think im having the same problem so if you figure it out will you please let me know thnks.

1 Answer

Joss Daniels
Joss Daniels
59,875 Points

Is it your spacing on (max-width : 480px) ?