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 Build a Three Column Layout

lata sharma
seal-mask
.a{fill-rule:evenodd;}techdegree
lata sharma
iOS Development Techdegree Student 5,292 Points

not able to get the 2 column on contact page?

On the responsive.css and the contact.html page...I have followed the code exactly but I am not seeing the 2 columns?

7 Answers

Kuhrt Cowan
Kuhrt Cowan
23,796 Points

It looks like in your css that there needs to be semicolons after both of your percentages in the #primary and #secondary. Like this :

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

#secondary { width: 40%; float: right; }
Sjors Theuns
Sjors Theuns
6,091 Points

Good catch, looked over this issue. Most of the time it's as simple as this :-)

+1 for your answer from me

Kuhrt Cowan
Kuhrt Cowan
23,796 Points

haha thanks. Can't tell you how many times I've done that!

Sjors Theuns
Sjors Theuns
6,091 Points

Hi Lata,

please submit the code you are using and also format the code to make it more readable. At the moment we can only guess what is going wrong.

lata sharma
seal-mask
.a{fill-rule:evenodd;}techdegree
lata sharma
iOS Development Techdegree Student 5,292 Points

my responsive.css code:

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

/*****************
2 column layout
*************/ 

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

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

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

}

My html code: ``` <div id="wrapper"> <section id="primary"> <h3>General Information</h3> <p> I am not currently looking for design works but available for speaking gigs. For any questions please contact me</p> <p> Please use phone for urgent inquiries. Otherwise twitter or email are best way to reach me.</p>
</section>

  <section id="secondary">
    <h3>Contact details</h3>  
    <ul class="contact-info">
      <li class="phone"><a href="tel:404-401-8565">404-401-8565</a></li>
      <li class="mail"><a href="mailto:lata1.sharma@gmail.com">lata1.sharma@gmail.com</a></li>
      <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=chaipanivodka">@chaipanivodka</a></li>
    </ul>
    </section>

have you taken into account margins before calculating your widths for the primary and secondary div's?

Sjors Theuns
Sjors Theuns
6,091 Points

What happens if you let them both float left?