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 trialToni Caktas
16,957 Pointshelp
@media screen and ( min-width: 768px) { body{ background: #FF6347; color:white; } }
what is wrong?
1 Answer
Dillon Patel
4,025 PointsHey! The property min-width
applies styles when the viewport is wider than the value (768px). The property max-width
is used when the viewport is less than the value (768px). The correct media query is below.
@media screen and (max-width: 768px) {
body {
background-color: #FF6347;
color: white;
}
}