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 Adjust the Profile Page and Header

Daphne Tideman
Daphne Tideman
9,006 Points

For the Content and About Page it will not change to two colums

For some reason for both the content and about page it will not become two columns. I have double checked the code and cannot find what the issue is. Thank you!

This is the code in the responsive.css: @media screen and (min-width: 480px) {

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

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

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

/******************** Page: Portfolio *********************/

#gallery li { width: 28.3333%; }

#gallery li:nth-child(4n) { clear: left; }

/******************** Page: ABOUT *********************/

.profile-photo { float: left; margin: 0 5% 80px 0; } }

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

}

This is the code on the contact page: for the sections: <div id="wrapper"> <section id="primary"> <h3>General Information</h3> <p>I am not currently looking for new design work, but I am available for speaking gigs and similar engagements. If you have any questions, please don't hesitate to contact me</p> <p>Please only use phone contact for urgent inquiries. Otherwise, twitter 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:555-6425">555-6425</a></li>

I just put your code into codepen and it works fine. on the right you have the contact details which consist of your h3 header and phone number as a list item. and on the left is the other h3 and p tags. is there something else you wanted?

Dominic Heselmans
Dominic Heselmans
5,649 Points

Did you make a reference to the correct css file in your header?

<link rel="stylesheet" href="css/responsive.css">