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 trial

HTML How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

Elysha Spector
Elysha Spector
9,189 Points

Two 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?

https://w.trhou.se/o0525ylhgw

Thank you for your help! Elysha

3 Answers

The problem is in your media queries :)

Bob McCarty
PLUS
Bob McCarty
Courses Plus Student 16,618 Points

Elysha,

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
Elysha Spector
9,189 Points

Thank 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
Elysha Spector
9,189 Points

Ahh, poor nesting... Thank you kind sir!