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 trialPeng Xiang An
6,716 PointsAnswer does not accept "only screen"
We were taught that it is a good practice to write a media query with only screen so that the browser without media query support would not render these css. But here the answer does not support that, any particular reason?
2 Answers
Adam Sackfield
Courses Plus Student 19,663 PointsA media query should look like this
@media screen and (RULE) {
SELECTOR {
STYLES
}
}
James Barnett
39,199 PointsSeems like a bug in the code correctness check to me. Personally I think it should allow only screen
in addition to screen
as the media type keyword.
What say you Guil Hernandez?