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

My website is not responsive for mobile devices.

I followed the "how to make a website" tutorial and built my first simple website: jimmywu023.com

When I browse my site with my smartphone, the portfolio page does not have a responsive layout. The about and contact page looks fine on my smartphone.

How should change my code to make my portfolio page responsive on mobile devices too? The responsive css coding is under the responsive.css file. Thanks in advance!

1 Answer

Hi Jimmy,

You're missing a meta tag on your portfolio page.

Add this in the head

<meta name="viewport" content="width=device-width, initial-scale=1.0">

~ Per

Ahh I see! Thanks a lot Per :)