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 trialNathan McNiece
8,590 PointsColumns not floating.
For some unknown reason my contact page is not floating into two separate columns.
@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. However, I am available for speaking gigs and similair engagements. If you have any questions please dont hesitate to contact me. My best point of contact is generall email.</p>
</section>
<section id="secondary">
<h3>Contact Details</h3>
<ul class="contact-info">
<li class="phone"><a href="tel:0422678086">0422678086</a></li>
<li class="mail"><a href="mailto:nathan@sempercreative.com">nathan@sempercreative.com</a></li>
<li class="twitter"><a href="http://twitter.com">@sempercreative</a></li>
</ul>
</section>
1 Answer
Boris Baskovec
4,798 PointsTry putting a value in px, like "width:400px;" instead of a %
If you're using %, I think the sections should be inside another div/section