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 Foundations Values and Units Relative Length Units

viewport

What is the viewport that Guil Hernandez always mensions at his videos exactly i cant undestand it exactly..

1 Answer

Viewport is a size of the browser window where a site are displayed. It differ from screen size, because browser window can be smaller than a computer/mobile screen. https://developer.apple.com/library/mac/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html#//apple_ref/doc/uid/TP40006509-SW19

Also viewport is a html meta tag <meta name=viewport content="width=device-width, initial-scale=1"> You can read more about it there https://developers.google.com/speed/docs/insights/ConfigureViewport

thx for quick answer its a lot clearer now.

Kevin Korte
Kevin Korte
28,148 Points

I marked this the best answer as it seems to answer your question. If another answer comes along that you fell fits your question better, feel free to change my decision Antonis Martalis.