Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!