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 trialWenwei Lu
10,897 Pointsthe third one doesn't work out
@media and screen (min-width: 800px){
.wrap{
width: 700px;
}
}
2 Answers
Unsubscribed User
2,759 PointsIt's screen and, not and screen. However the and is useless here.
Codin - Codesmite
8,600 Points/* Complete the challenge by writing CSS below */
@media(max-width: 768px){
body {
background-color: #FF6347;
color: white;
}
}
@media(max-width: 480px){
body {
background-color: #4682B4;
}
}
@media(min-width: 800px){
.wrap {
width: 700px;
}
}
Passes correctly for me.
Make sure you have closed your braces for the previous media queires correctly too :)
Also your syntax is slightly off for and screen.
It should be:
@media only screen and (min-width: 800px){
.wrap {
width: 700px;
}
}
but this is not required for the task.
Wenwei Lu
10,897 PointsWenwei Lu
10,897 PointsMany thanks!