Do You Really Understand the Viewport

Written by shabab.ali | Published 2020/03/19
Tech Story Tags: viewport-meta-tag | responsive-design | responsive-web-design | web-development | html5 | css | front-end-development | frontend

TLDR The viewport defines the area of the screen that the browser can render the content to. Viewport size is based on the width of the browser window, rather than the pixel density of the display. By setting the “width=device-width” in the meta viewport tag we instruct the page to match the screen width in device-independent pixels. This allows the page. to reflow content to match screen sizes, whether rendered on a small, medium or large screen.via the TL;DR App

no story

Published by HackerNoon on 2020/03/19