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 trialTunde Adegoroye
20,597 PointsViewport metatag
I've been watching previous videos about this meta to make the actual device the width of the view port with this metatag
<meta name="viewport" content="width=device-width, initial-scale = 1.0">
But i'm wondering is the initial scale necessary because in the previous videos i've been watching it's not really been used
1 Answer
Ilma Andayana
12,146 Pointsinitial-scales set the width of the page to appropriate width in your CSS. initial-scale=1 (zoom 100%) tells the browser not to zoom in or out to fit the screen width exactly. It works fine if you have fluid design, otherwise, the page may appear too wide or too narrow.
~ i found the answer here: http://tech.bluesmoon.info/2011/01/device-width-and-how-not-to-hate-your.html http://stackoverflow.com/questions/7152474/confused-on-initial-scale-1-0-iphone-3gs-vs-4