{"id":4399,"date":"2024-04-15T02:08:17","date_gmt":"2024-04-14T18:08:17","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=4399"},"modified":"2024-04-15T02:08:17","modified_gmt":"2024-04-14T18:08:17","slug":"minor-substantial-and-versatile-viewport-units","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/minor-substantial-and-versatile-viewport-units\/","title":{"rendered":"Minor, substantial, and versatile viewport units"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>Viewport units are in proportion to the size of the viewport \u2014 the browser window where a webpage is presented. However, standard viewport units do not adjust for mobile browsers with dynamic toolbars (e.g., a toolbar that appears and disappears based on a site visitor&#8217;s scrolling behavior). In such instances, you can opt for minor, substantial, or versatile viewport units that consider the space taken up by dynamic toolbars. <\/p>\n<p>In scenarios where you utilize traditional viewport units (e.g., VH and VW), elements sized at 100 VH or 100 VW might exceed the viewport&#8217;s boundaries on browsers with dynamic toolbars. In these cases, it is preferable to utilize minor, substantial, or versatile viewport units to ensure that your site&#8217;s elements remain fully visible. <\/p>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow-s3.tenten.co\/2024\/04\/64b9491ea2bc8cd59a6243a1_6421ec84652daf6e076025d7_vh2520vs2520dvh.png\" loading=\"lazy\" alt=\"2 mobile browser windows shown side-by-side. On the first, VH units are used, and the bottom element is cut off by the toolbar. On the second, DVH units are used, and the bottom of the element is shown above the toolbar.\" title=\"64b9491ea2bc8cd59a6243a1_6421ec84652daf6e076025d7_vh2520vs2520dvh\"><\/div>\n<\/figure>\n<h6><strong>Important:<\/strong> Not all browsers support versatile viewport units. <a href=\"https:\/\/caniuse.com\/viewport-unit-variants\" target=\"_blank\" rel=\"noopener\">Visit this link to verify compatibility for minor, substantial, and versatile viewport units with your target audience&#8217;s browser<\/a>.<\/h6>\n<p>You can apply the following viewport units for styling:<\/p>\n<ul role=\"list\">\n<li><strong>DVH<\/strong> \u2014 proportionate to the dynamic viewport height<\/li>\n<li><strong>DVW<\/strong> \u2014 proportionate to the dynamic viewport width<\/li>\n<li><strong>SVH<\/strong> \u2014 proportionate to the minor viewport height<\/li>\n<li><strong>SVW<\/strong> \u2014 proportionate to the minor viewport width<\/li>\n<li><strong>LVH<\/strong> \u2014 proportionate to the substantial viewport height<\/li>\n<li><strong>LVW<\/strong> \u2014 proportionate to the substantial viewport width<\/li>\n<li><strong>VH<\/strong> \u2014 proportionate to the viewport height<\/li>\n<li><strong>VW<\/strong> \u2014 proportionate to the viewport width<\/li>\n<\/ul>\n<p>Units with an <strong>LV<\/strong> prefix are aligned with substantial viewports, which represent the visible viewport area when a dynamic toolbar is concealed on a mobile browser. Units with an <strong>SV<\/strong> prefix are aligned with minor viewports, representing the visible viewport area when a dynamic toolbar is active on a mobile browser.<\/p>\n<h6><strong>Important: <\/strong>While using units in an input field within the Designer, you will not find SVH, SVW, LVH, or LVW units in the unit dropdown. To apply these units in an input field, input the value and the unit letters (e.g., 100 SVH) in the input field and press <strong>Enter<\/strong>.<\/h6>\n<h2>Recommended approaches<\/h2>\n<p>We suggest employing SVH for establishing section heights (e.g., a hero section height). This ensures a smooth browsing experience <em>and<\/em> prevents dynamic toolbars from obstructing content within your section.<\/p>\n<p>It is advisable to set a minimum height using SVH instead of merely setting the section&#8217;s height. By doing so, the section will adjust according to the content inside \u2014 expanding or contracting accordingly. For instance, setting your hero section&#8217;s minimum height to 100 SVH will occupy the entire viewport (even with a dynamic toolbar) but can also <em>expand<\/em> based on the content enclosed.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Use small, large, and dynamic viewport units for responsive design on mobile browsers with dynamic toolbars.","protected":false},"author":2,"featured_media":4400,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-4399","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=4399"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4399\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/4400"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=4399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=4399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=4399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}