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

Tim Larson
seal-mask
.a{fill-rule:evenodd;}techdegree
Tim Larson
Full Stack JavaScript Techdegree Student 13,696 Points

Why isn't my contact page formatting to the two column layout?

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

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

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

}

AND HTML:

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Tim Larson | Designer </title> <link rel="stylesheet" href="file:///C:/Users/Anon/Desktop/Design/Portfolio/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Lobster|Changa+One|Roboto' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="file:///C:/Users/Anon/Desktop/Design/Portfolio/main.css"> </head>

<body>

    <header>
        <a href="index.html" id="logo">
            <h1> Tim Larson </h1>
            <h2> Designer </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">
    <br/>
        <section id="primary">
            <h3>General Information</h3>
                <p>I am currently available for any and all small business projects while taking the summer off from school. If you have any questions the best ways to reach me are twitter and email. For urgent inquiries and emergency site maintenance you may text or call my phone directly. </p>
            </section>

            <section id="secondary">
            <h3>Contact Details</h3>
                <p>
                <ul class="contact-info">
                    <li class="mail"><a href="mailto: tim.larson.cs@gmail.com">tim.larson.cs@gmail.com</a></li>
                    <li class="twitter"><a href="http://www.twitter.com/intent/tweet?screen_name=timmerdota">@TimmerDota</a></li>
                    <li class="phone"><a href="tel:714-316-8373">(714) 316-8373</a></li>

                </ul>
        </section>

<footer>
    <a href="http://www.twitter.com/timmerdota"><img src="file:///C:/Users/Anon/Desktop/Design/Portfolio/twitter-wrap.png" alt="Twitter logo" class="social-media"></a>
    <a href="http://www.facebook.com/timmer253"><img src="file:///C:/Users/Anon/Desktop/Design/Portfolio/facebook-wrap.png" alt="facebook icon" class="social-media"></a>
    <p>&copy; 2015.</p>
</footer>
    </div>
</body>

</html>

Please help!

Jon Harris
Jon Harris
1,926 Points

It doesn't look like you linked your CSS file to the contact page. When doing the exercise it has you link the css file (responsive.css) below the main.css file.

Also make sure your window is stretched past 480px wide.

2 Answers

Tim Larson
seal-mask
.a{fill-rule:evenodd;}techdegree
Tim Larson
Full Stack JavaScript Techdegree Student 13,696 Points

Thanks Jon. I had linked it on my about page by mistake. It seems that I'm apparently too tired to continue effectively :P. Thanks again!

you need it linked to ALL THE PAGES. Don't said you had it link to the about page "by mistake". lol