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 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">