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 trialDalia Anuz
Courses Plus Student 486 PointsBuild a Three Column Layout
nothing changes on my page still the same need help :/
@media screen and (min-width 480px) {
/*************************** TWO COLUMN LAYOUT ***************************/
#primary { width: 50%; float: left; }
#secondary { width: 40%; float: right; }
/*************************** PAGE: PORTFOLIO ***************************/
gallery li {
width: 28.3333%;
}
gallery li:nth-child(4n) {
clear: left;
}
}
@media screen and (min-width: 660px) {
}
2 Answers
Tobias Helmrich
31,602 PointsHey Dalia,
you have to add a colon after min-width in the media query, you did it in the second one but in the first media query it's missing. Like so:
@media screen and (min-width: 480px)
Try it out again after you changed it and hopefully it will change then, good luck! :)
Dalia Anuz
Courses Plus Student 486 Pointsthanks for your help
Tobias Helmrich
31,602 PointsNo problem, could you fix the issue?
Dalia Anuz
Courses Plus Student 486 PointsDalia Anuz
Courses Plus Student 486 Pointswhat you mean I'm confused now
Tobias Helmrich
31,602 PointsTobias Helmrich
31,602 PointsIn your first media query you wrote
@media screen and (min-width 480px)
behind min-width you have to add : like so
@media screen and (min-width: 480px)