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 trialElysha Spector
9,189 PointsTwo columns do not stack on top of each other, for mobile view:
While the contact page now shows two columns, it does not become one column (stacking on top of one another) when the browser is set to a small mobile size (like Nick's does). It remains two columns no matter the size is. I cleared my cache, but it did not change anything. Does anyone know what is wrong with my code?
Thank you for your help! Elysha
3 Answers
Shawn Denham
Python Development Techdegree Student 17,801 PointsThe problem is in your media queries :)
Bob McCarty
Courses Plus Student 16,618 PointsElysha,
As Shawn mentioned, your responsive.css sets the two column styling for all screen sizes. In your media query, try using (max-width: 760px) . This selects all screens less than a760px. For example:
@media screen and (max-width: 760px) {
#primary, #secondary {
max-width: 100%;
display: block;
}
}
Play around with the styling. Place the query at the end of responsive.css.
Good Luck
Elysha Spector
9,189 PointsThank you very much Bob, I will definitely test changing the screen sizes around after course completion.
Sadly, my issue was a simple misplacement of a bracket.
Elysha Spector
9,189 PointsAhh, poor nesting... Thank you kind sir!