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

2 problems: no margin between contact info paragraphs and edge of browser and images will not go to 3 columns!

I have had a look and as far as i'm aware my code matches what has been written here.

Firstly, there is no space between my text and the edge of the browser on my contact page. If it is desktop size it is fine but once the screen size is reduced it goes.

css for contact page:

.contact-info { list-style: none; padding: 0; margin: 0; font-size: 0.9em; }

.contact-info a { display: block; min-height: 20px; background-repeat: no-repeat; background-size: 20px 20px; padding: 0 0 0 30px; margin: 0 0 10px; }

.contact-info li.phone a { background-image: url('../img/phone.png'); }

.contact-info li.mail a { background-image: url('../img/mail.png'); }

.contact-info li.twitter a { background-image: url('../img/twitter.png'); }

responsive css for contact page:

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

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

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

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

Secondly, I cant get my images on portfolio page to go into 3 columns. Not sure why (I have tried to code correction which hasnt worked)

responsive css for portfolio:

/********************* PAGE: PORTFOLIO *********************/

#gallery li { width: 28.3333%; }

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

}

It is both probably something really stupid but it is driving me INSANE trying to work this out.

Thanks

Managed to get the columns to work (had put my link for responsive css under normalise css rather than main css!)

this didnt fix my issue with my contact page though - seems that could be due to my main css!

RESOLVED: there was an extra : in my wrapper css!