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

Paul Herrera
Paul Herrera
3,141 Points

Contact Info column is not floating at the same level as the General info level. It stays below

The second column is not floating at the same height level as the first column. Instead it stays below (aligned to the right)

Responsive.css:

@media screen and (min-width:480px) {
 /*********************
Two Column Layout
*********************/
  #primary {
    width=50%;
    float:left;
  }

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

Contact.html

<section id="primary">
        <h3>General Information</h3>
          <p>I am not currently looking for new design work, but I am available for speaking gigs and similar engagements. If you have any questions please don't hesitate to contact me!</p>
          <p>Please only use phone contact for urgent inquiries. Otherwise Twitter and Email are the best ways to reach me</p>
      </section>
      <section id="secondary">
        <h3>Contact Details</h3>
          <ul class="contact-info">
            <li class="phone"><a href="tel:555-1234">555-1234</a></li>
            <li class="mail"><a href="mailto:nick@example.com">nick@example.com</a></li>
            <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=nickrp">@nickrp</a></li>
          </ul>
      </section>
Paul Herrera
Paul Herrera
3,141 Points

I figured out the issue. I was using

width=50%;

instead of

width:50%;

Posted at the same time. Glad you figured it out.

1 Answer

Hi Paul,

In both your #primary and #secondary rules you used equals for the width instead of a colon :