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 CSS Layout CSS Media Queries The meta Viewport Declaration

Spencer Renfro
PLUS
Spencer Renfro
Courses Plus Student 11,133 Points

My code for the media query zooms out while active instead of stopping the browser from zooming out on mobile device

code I have for the media query as follows:

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

I do not understand why this zooms the browser out while the code is not commented out, and when the code is commented out, it is zoomed in.