{"id":2117,"date":"2020-09-12T05:28:55","date_gmt":"2020-09-12T03:28:55","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2117"},"modified":"2020-09-12T05:38:24","modified_gmt":"2020-09-12T03:38:24","slug":"min-height-and-min-width-with-flex","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2117","title":{"rendered":"min-height and width with flex"},"content":{"rendered":"\n<p>The child element of a flexbox may not obey to the css property <strong>min-height<\/strong>. Therefore you should use this code in the parent element: <code>min-height: 100vh<\/code>.<\/p>\n\n\n\n<p>Otherwise the child element, f.e. the main div of a web page with <em>few content<\/em>, could end before the end of the page, in an inelegant way.<\/p>\n\n\n\n<p>The <strong>width<\/strong> of a child element as well may not work as expected (and as it would do without flex). Therefore you should <em>explicitly state <\/em>the width of a child element within a flexbox.<\/p>\n\n\n\n<p>Otherwise a web page (with few text, i.g.) could have a width considerably narrower that expected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The child element of a flexbox may not obey to the css property min-height. Therefore you should use this code in the parent element: min-height: 100vh. Otherwise the child element, f.e. the main div of a web page with few content, could end before the end of the page, in an inelegant way. The width &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=2117\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;min-height and width with flex&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[566],"tags":[610,449,7,618,620,619],"class_list":["post-2117","post","type-post","status-publish","format-standard","hentry","category-webmaster","tag-flex","tag-flexbox","tag-height","tag-min-height","tag-web-page","tag-width"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2117"}],"version-history":[{"count":7,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2117\/revisions"}],"predecessor-version":[{"id":2124,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2117\/revisions\/2124"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}