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 triallata sharma
iOS Development Techdegree Student 5,292 Pointsnot 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
23,796 PointsIt 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
6,091 PointsHi 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
iOS Development Techdegree Student 5,292 Pointsmy 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>
Andreas cormack
Python Web Development Techdegree Graduate 33,011 Pointshave you taken into account margins before calculating your widths for the primary and secondary div's?
lata sharma
iOS Development Techdegree Student 5,292 PointsNot yet. But the instructor had this code and his site was responding accordingly.
Sjors Theuns
6,091 PointsWhat happens if you let them both float left?
lata sharma
iOS Development Techdegree Student 5,292 PointsThank you! that worked!
Sjors Theuns
6,091 PointsSjors Theuns
6,091 PointsGood catch, looked over this issue. Most of the time it's as simple as this :-)
+1 for your answer from me
Kuhrt Cowan
23,796 PointsKuhrt Cowan
23,796 Pointshaha thanks. Can't tell you how many times I've done that!