"JavaScript Basics (Retired)" was retired on March 27, 2020.

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

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

Window will not go below 480 now that I have added the media queries

I cannot resize my window smaller than 480px, (assuming), now that I have added the two column code for the Contact page. I have rechecked everything and can't find the error. Any help?

@media screen and (min-width: 480px) {

}

/*********************************** TWO COLUMN LAYOUT ***********************************/ #primary { width: 50%; float: left; }

secondary {

width: 40%; float: right; }

5 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

Tammy,

If you have Chrome installed you can get the extension Responsive web design tester that will allow you to see what sites will look like on smaller devices.

Hope this helps.

Hi Wayne, Thank you, I actually did find that little error after re-watching the video, which did correct one problem I had, (the secondary would not drop below the primary column), however, I still cannot take the browser window any smaller. Everything works just fine otherwise. I am at a loss.

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Tammy,

Thats not a code problem, thats just the limit the browser will let you go down too.
Im running Safari on my Mac and my browser won't go below 480 either.

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Tammy,

You have a slight error in your css, you should move the closing bracket from under the media query to the end of your code.

  /***********************************
TWO COLUMN LAYOUT
***********************************/

@media screen and (min-width: 480px) {

     #primary {
        width: 50%;
        float: left;
    }

    #secondary {
        width: 40%;
        float: right;
    }
}

Thanks! I'm glad to know it's not me :)

Jason Weakley
Jason Weakley
2,502 Points

Maybe I just don't know how to ask this... Google seems to think I can't read small font, and keeps showing me results on how to increase the resolution, etc. My problem is that I cannot grab the corner of the Safari browser and make it smaller than a window size equal to or less than 480px wide to replicate a mobile device. How can I make the window physically smaller... not the same thing as decreasing/increasing the zoom/resolution etc.