Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!