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

Mobile first design vs actual mobile screen not happening...

Brought my site live and, found that my mobile phone picks up my site like it were a full browser screen.

I built it with media queries building up from what was supposed to be the mobile version. On a computer you can play with the browser size and it works like it should.

I feel like I'm missing something in the code that would recognize a small screen device.

I put this bit of code in which I thought would take care of the problem...

        <meta name=”viewport” content=”width=device-width, initial-scale=1”>

Any suggestions would be appreciated.

2 Answers

Very bizaare, I changed the quotation marks around that line of code and it fixed the problem. They were the only quote marks at a slant, not sure why but, that fixed it.

It also depends on what browser your cell phone uses. Although if you're using an iPhone or an Android, it should technically work...