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 Adjust the Profile Page and Header

Anthony Lafont
Anthony Lafont
17,075 Points

The two columns never show on the preview

I checked my code twice, I can't see what I am doing wrong. Is it possible that it's because I use the normalize.css 5.0.0?

Here are my codes

about.html

!DOCTYPE html>
<html>
    <head>
                <meta charset="utf-8">
        <title> Anthony Lafont | WebDev </title>
        <link rel="stylesheet" href="CSS/normalize.css">
        <link href="https://fonts.googleapis.com/css?family=Nunito+Sans|Quicksand" rel="stylesheet">
        <link rel="stylesheet" href="CSS/main.css">
        <link rel="stylesheet" href="CSS/responsive.css">
    </head>
            <body>
                <header>
                    <a href="index.html" id="logo">
                        <h1>Anthony Lafont</h1>
                        <h2> Web Developper </h2>
                    </a>
                    <nav>
                        <ul>
                            <li><a href="index.html" class="selected">  Portfolio </a> </li>
                            <li><a href="about.html"> About </a> </li>
                            <li><a href="contact.html"> Contact </a> </li>
                        </ul>
                    </nav>
                </header>
                <div id="wrapper">
                    <section>
                        <img src="img/nick.jpg" alt="Photograph of Nick Petty" class="profile-photo">
                        <h3> About </h3>
                        <p> Blablblabla blablablabla blablablabla </p>
                        <p> If you like to follow me on Twitter, here is my username: <a href="https://twitter.com/anthony_lafont">anthony_lafont</a></p>
                    </section>
                    <footer>
                        <a href="https://twitter.com/anthony_lafont"> <img src="img/twitter-wrap.png" alt="Twitter logo" class="social-icons"> </a>
                        <a href="https://www.facebook.com/lafont.anthony" > <img src="img/facebook-wrap.png" alt="Facebook logo" class="social-icons"> </a>
                        <p>&copy; 2017 Anthony Lafont.</p>
                    </footer>
                </div>
            </body>
</html>

responsive.css

@media screen and (min-width: 480px) {
    /********************************
                 TWO COLUMN LAYOUT
    ********************************/
    #primary {
        width: 50%;
        float: left;
    }

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

        /********************************
                THREE COLUMN LAYOUT
    2,5% * 2 = 15% margin
    85% / 3 = 28.3333333%
    ********************************/

    #gallery li {
        width: 28.3333%
    }

    #gallery li:nth-child(4n) {
        clear: left
    }


    /********************************
                 ABOUT PAGE
    ********************************/

    .profile-photoΒ {
        float: left;
        margin: 0 5% 80px 0;
    }

}



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



}
Anthony Lafont
Anthony Lafont
17,075 Points

That's OK, I solved the problem myself ;) We can see there is something wrong here thanks to the styling:

.profile-photo {
        float: left;
        margin: 0 5% 80px 0;
    }

I could have been blocked on this all day long... Anthony