{"id":6733,"date":"2025-08-12T10:52:32","date_gmt":"2025-08-12T15:52:32","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=6733"},"modified":"2025-08-12T10:52:33","modified_gmt":"2025-08-12T15:52:33","slug":"stretch","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/stretch\/","title":{"rendered":"Stretch"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Did you know <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/height#stretch\">you can do <code>height: stretch<\/code><\/a> now in CSS? Works for <code>width<\/code> too.<\/p>\n<cite><a href=\"https:\/\/bsky.app\/profile\/davatron5000.bsky.social\/post\/3lvomxgrds22s\">Dave Rupert<\/a><\/cite><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>The other day [Dave] shared a link to the new <code>stretch<\/code> keyword in CSS \u2013\u00a0and I saw a lot of questions about how it&#8217;s different from 100% (or 100vh when doing full-screen layouts). So I made <a href=\"https:\/\/www.youtube.com\/watch?v=iZZXOuLxagE\">a quick video<\/a> to show how these all work!<\/p>\n<cite><a href=\"https:\/\/front-end.social\/@mia\/114988474627312352\">Miriam Suzanne<\/a><\/cite><\/blockquote>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know you can do height: stretch now in CSS? Works for width too. Dave Rupert The other day [Dave] shared a link to the new stretch keyword in CSS \u2013\u00a0and I saw a lot of questions about how it&#8217;s different from 100% (or 100vh when doing full-screen layouts). So I made a quick [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6735,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[7,383],"class_list":["post-6733","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-css","tag-stretch"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2025\/08\/pexels-photo-979247.jpeg?fit=1880%2C1253&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=6733"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6733\/revisions"}],"predecessor-version":[{"id":6734,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/6733\/revisions\/6734"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/6735"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=6733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=6733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=6733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}