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

My contact and paragraphs not lined up like in the video. Contact floats right but below paragraphs. Help please

I am not sure where I have gone wrong. In the video when the screen size is expanded the paragraphs float left and the contact info floats right and they become side by side when expanded. I keep checking the code and think I'm on track. Could someone look this over and tell me what i've done wrong. Code below.

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

/************************************

TWO COLUMN LAYOUT *************************************/

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

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

HTML: <section id-"primary"> <h3>General Information</h3> <p>I am available for bookings of all types. Childrens parties, corporate events,weddings and more. If you have any questions please don't hesitate to contact me!</p> <p>Please email or call. I will get back to you as soon as possible!</p> </section> <section id="secondary"> <h3>Contact Details</h3> <ul class="contact-info"> <li class="phone"><a href="tel:8125-525-1021">812-525-1021</a></li> <li class="mail"><a href="mailto:JesseMorganMagic@yahoo.com">JesseMorganMagic@yahoo.com</a></li> <li class="twitter"><a href="http://twitter.com/intent/tweet? screen_name=JesseMMagic">@JesseMMagic</a></li> </ul> </section>

1 Answer

I figured it out.. I had a - on id. So it was id- instead I needed id=. Hope this helps anyone else that may come across this. Thanks for looking at it tho!