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 trialJamie Bradley
7,148 PointsCSS > Media Queries: Oddly phrased question??
So, here's the question:
Under "Phones to Tablets," create a media query that floats the .col elements left if the viewport is 481px or wider. Then, add all other "Phones to Tablets" CSS rules inside the media query.
I wrote the media query, but what is this second part asking for, please??:
Then, add all other "Phones to Tablets" CSS rules inside the media query.
1 Answer
Seth McCombs
16,767 PointsHey Jamie! That question is looking for you to create a media query, and add float:left
to the .col
divs, and then move the existing rules into that query
@media screen and (min-width: 481px) {
.col {
float: left;
}
/* Phones to Tablets */
.main {
width: 65.957446808511%;
}
.secondary {
width: 31.914893617021%;
}
.secondary,
.extra {
margin-left: 2.127659574468%;
}
}
Jamie Bradley
7,148 PointsJamie Bradley
7,148 PointsSeriously? Yeah, that worked. I guess I just thought there was more to it than copying and pasting. Thank you :)