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

HTML How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

Layout messed up

When i add the css and refresh my contat page it is moving the image of the phone and the piece of mail, why is this happening?

Logan R
Logan R
22,989 Points

Hi! Can you please post a link to the code or embed it in the website using ``` so we can better understand what is happening?

Thanks!

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

}

/***************************** Two Column Layout ******************************/

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

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

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

}

2 Answers

<section id="primary"> <h3>General Information</h3> <p>I am crrently looking for new custom PC work. If you have any questions please dont hesitate to contact me.</p> <p>Please only use phone contact for urgent inqiries. Otherwise Facebook and email 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:518-335-3630">518-335-3630</a></li> <li class="mail"><a href="mailto:clintoncountypcrepair@gmail.com">clintoncountypcrepair@gmail.com</a></li> <li class="facebook"><a href="https://www.facebook.com/nick.plouffe.39">Facebook</a></li> </ul> </section>

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

}

/***************************** Two Column Layout ******************************/

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

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

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

}