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

page not splitting into columns

nothing is happening when I try to lengthen the screen. the primary and secondary columns are still stacked on top of each other no matter how wide i make the window.

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

/******************************** two column layout ********************************/

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

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

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

}

here is the code from the contact page

<!DOCTYPE html> <html> <head> <meta Charset="utf-8"> <title>Daniel Ross Nicholson | photographer </title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Oswald:400,300,700|Open+Sans:300italic,700italic,400,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Daniel Ross Nicholson</h1> <h2>Photographer </h2> </a> <nav> <ul> <li><a href="index.html">portfolio</a></li> <li><a href="about.html">about</a></li> <li><a href="contact.html" class="selected">contact</a></li> </ul> </nav> </header> <div id="wrapper"> <section id="primary"> <h3>General Information</h3> <p>best way to get in contact with me</p> <p>side note</p> </section> <section id="secondary"> <h3>Contact Details</h3> <ul class="contact-info"> <li class="phone"><a href="tel:(330)284-1300">(330)284-1300</a></li> <li class="mail"><a href="mailto:Dan_Nicholson@aol.com">Dan_Nicholson@aol.com</a></li> <li calss="twitter.com"><a href="http://twitter.com/intenet/tweet?screen_name=nickrp">@nickrp</a></li>
</ul> </section> <footer> <a href"http://facebook.com/dan.nicholson.92123"><img src="img/twitter-wrap.png" alt="twitter logo" class="socia-icon"></a>
<a href="http://facebook.com/dan.nicholson.92123"><img src="img/facebook-wrap.png" alt="facebook logo"></a> <p>Ā© 2015 Daniel Ross Nicholson.</p>
</footer> </div> </body> </html>

2 Answers

it looks like you forgot to add the css to your contact html. if you are following along with the video it will go under your main.css and look like this/ link rel="stylesheet" href="css/responsive.css" / if you named it something other then responsive just change that out but that should get it up and working.

yeah that did it. I wonder If I forgot to save out the last time I was working on it. I think I remember adding that before. thanks.