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

secondary column wont float to top left. stays beneath and to the right of primary column.

I'm having trouble with my responsive.css. The secondary column will not float to top righ. Instead it sits below the p<> elements on the right hand side.

Joseph Turnquist
Joseph Turnquist
14,516 Points

Hey Bryan,

Can you provide some of your CSS / HTML?

3 Answers

Joseph Turnquist
Joseph Turnquist
14,516 Points

Looks like there's an error in your HTML here:

<section id:"primary">

it should be like this (you used : instead of =):

<section id="primary">

See if fixing that helps.

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

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

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

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

}

<div id="wrapper">
        <section id:"primary">
            <h3>General Information</h3>
            <p>I am not currently looking for design work, but am am available for speeking gigs, or similar arrangements. If you have any questions please do not hesitate to contact me!</p>
            <p>Please contact me by phone for emergencies. Otherwise email and Twitter are the best way to contact me.</p>
        </section>
        <section id="secondary">
            <h3>Contact Details</h3>
            <ul class="contact-info">
                <li class="phone"><a href="tel:650-248-7587">650-248-7587</a></li>
                <li class="mail"><a href="mailto:bwalsh712@gmail.com">bwalsh712@gmail.com</a></li>
                <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=BWALSHHHH">@BWALSHHHH</a></li>
            </ul>
        </section>
        <footer>
            <a href="http://twitter.com/BWALSHHHH"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
            <a href="https://www.facebook.com/bryan.patrick.923"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
            <p>&copy; 2014 Bryan P Walsh</p>

Your right! thanks I appreciate it :)

Joseph Turnquist
Joseph Turnquist
14,516 Points

Bryan,

Glad I could help, and be sure to mark my answer as the best response if it solved your issue :)