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

JavaScript Treehouse Club - MASH MASH - HTML What in the Head

M Mi
M Mi
8,205 Points

With the "viewport" meta name, what does it do exactly? What's the difference between what it does vs Twitter Bootstrap?

With the "viewport" meta name, what does it do exactly? What's the difference between what it does vs Twitter Bootstrap?

Aaron Martone
Aaron Martone
3,290 Points

In short, my 5.2" S6 screen has a resolution of 2560x1600 (in landscape), but over a smaller space than my desktop monitor of 2560x1600. Without that viewport meta directive, the phone attempts to render 1 rendered pixel per device pixel, making the site look very small and require pinching/zooming. This phone has a "Device Pixel Ratio" (DPR) of 4, meaning with the directive it will render 640x400 (2560x1600 / 4). The directive says "You have a renderable screen of 640x400, even though your screen has 2560x1600 pixels in it, effectively making the site "bigger" and easier to use by the end user.