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.

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

Cheryl Hurley
Cheryl Hurley
2,250 Points

Social icons lingering in first column

I just added the media queries to the Contact page to in theory move all contact links to a secondary column floated right. The only problem is the icons didn't float with it, unlike Nick Pettit's! I've gone through my files alongside the finished project files and looked for mistakes but can't make sense of it. What am I doing wrong?

main.css

contact.html

responsive.css

Thanks. I know I've been blowing up the forums as of late!

4 Answers

Oskars Rukmans
Oskars Rukmans
8,288 Points

Hi Cheryl, I mentioned you missed a semicolon after width value in responsive.css, thats why next rule (which is float) not working.

alt text

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Hi Cheryl,

Were you able to figure this one out? If not, you should try posting this as a pen on http://codepen.io/ instead of just posting the code. It's much easier to spot issues when you can use debugging tools like the Chrome DevTools.

Try these things.

Remove clear: both; from the #wrapper id in main.css or Add the following: <meta name="viewport" content="width=device-width, initial-scale=1.0"> as the last link under the <head> tag in your contact.html or make sure that you always close your css values with a semi-colon

Cheryl Hurley
Cheryl Hurley
2,250 Points

Yep Oskars Rukmans, that did it. How did I miss that, ugh!

Nick Pettit, great tip! Seems like a much easier layout for referencing different files, also. Looking forward to the debugging portion of the project, too.