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 trialDani Donovan
651 PointsColumns not showing up
I'm following along with the video and I don't know why my two columns aren't showing up. Am I doing it wrong? I double-checked for typos and didn't see any.
Here's code from my responsive.css:
@media screen and (min-width: 480px) {
/*********************
TWO COLUMN LAYOUT
***********************/
#primary {
width: 50%;
float: left;
}
#secondary {
width: 40%;
float: right;
}
}
And then in my contact.html page, here's the code it's referring to:
<div id="wrapper">
<section id="primary">
<h3>General Information</h3>
<p>Don't be shy; I'm an open book! Whether you'd like to hit me up for coffee or contact me about freelance work, I'd love to hear from you.</p>
<p>Please only use phone contact for urgent inquiries. Otherwise, Twitter and e-mail are the best way to reach me.</p>
</section>
<section id="secondary">
<h3>Contact Details</h3>
<ul class="contact-info">
<li class="phone"><a href"tel:402-555-8580">402-555-8580</a></li>
<li class="mail"><a href="mailto:danimariedonovan@gmail.com">danimariedonovan@gmail.com</a></li>
<li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=danidonovan">@danidonovan</a></li>
</ul>
</section>
4 Answers
Dani Donovan
651 PointsI deleted all of the new code I'd put in and re-entered it all, and it worked... Not really sure what happened but it's at least fixed now. But thanks, Calvin! :)
Calvin Nix
43,828 PointsI love it when that happens.
Calvin Nix
43,828 PointsHey Dani,
I didn't notice anything wrong with your code. Do you mind providing the full HTML code for the contact.html page?
kush sharma
Courses Plus Student 2,360 PointsHi, Couldn't help but notice that anchor inside the first list item is wrong.You have placed a tel:402-555-8580 inside the anchor link which might be causing an error.
Jason Anello
Courses Plus Student 94,610 PointsHi Kush,
It's actually ok to have a telephone link like that.
kush sharma
Courses Plus Student 2,360 PointsHey Jason thx fr tht, didn't know dat...
Cheers..:)...
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi Dani,
Not sure if this would have caused the problem but you were missing the equal sign on the
href
for your phone link.