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

Lynne Peterson
Lynne Peterson
2,455 Points

Responsive.css ... not working. Tried matching index/pages/responsive to Nicks..help

I have reviewed several times the Responsive Web Design video and matched everything to Nicks' that I can see but nothing I've done seems to create either a colored background using marvelousstudent281 nor any columns ... I can't figure it out. My luck it is probably a missing period... LOL

Lynne Peterson
Lynne Peterson
2,455 Points

I finally got the About Page to work into 2 columns but the portfolio page still does not change between 2-3 columns when sized.

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


      <li><a href="index.html" class="selected">Portfolio</a></li>
      <li><a href="about.html">About</a></li>
      <li><a href="contact.html">Contact</a></li>

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) {

}

Lynne Peterson
Lynne Peterson
2,455 Points

Interesting ... not everything I wrote posted so here is the other piece of the index.html that I wrote....

<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/responsive.css">
Lynne Peterson
Lynne Peterson
2,455 Points

I gave up. Thru' i.e. View Source I printed out Nicks' code and matched it by line and character on all pages and still could not figure out what was wrong. Finally, I copied Nicks' code and matched it to my info and am moving on. Hopefully, thru' practice I'll get better at spotting errors but this one is beyond me. Thank you.

1 Answer

I would love to help guide you to a proper solution, but I would need to see your code. Just copy and paste your css using the format from the markdown cheatsheet.