{"id":5974,"date":"2024-04-14T12:55:56","date_gmt":"2024-04-14T04:55:56","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=5974"},"modified":"2024-04-14T12:55:56","modified_gmt":"2024-04-14T04:55:56","slug":"align-elements-using-flexbox","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/align-elements-using-flexbox\/","title":{"rendered":"Align elements using flexbox"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<h6>Prior to beginning: Take a look at our flexbox introduction.<\/h6>\n<p>In this tutorial, you will discover: <\/p>\n<ol start=\"1\" role=\"list\">\n<li>Techniques for centering individual elements<\/li>\n<li>Approaches for centering multiple elements<\/li>\n<\/ol>\n<h2>How to centrally position an individual element <\/h2>\n<p>To center one element both vertically and horizontally within its parent container: <\/p>\n<ol start=\"1\" role=\"list\">\n<li>Identify the parent container on the canvas or in the Navigator<\/li>\n<li>Navigate to <strong>Style panel <\/strong>&gt; <strong>Layout<\/strong> &gt; <strong>Display<\/strong><\/li>\n<li>Press on <strong>Flex<\/strong><\/li>\n<li>Select the <strong>center<\/strong><strong>cell<\/strong> in the <strong>alignment box<\/strong> (you can also opt for <strong>Center<\/strong> from both the <strong>X<\/strong> and <strong>Y<\/strong><strong>axis<\/strong> dropdowns) <\/li>\n<\/ol>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/65f861c00c71b87519ac4d47_flexbox20-20center20single.webp\" loading=\"lazy\" title=\"65f861c00c71b87519ac4d47_flexbox20-20center20single\"><\/div>\n<\/figure>\n<p>You can also apply the steps above to center an individual element that contains multiple child elements within its container \u2014 for example, aligning a container with a heading, paragraph, and link block inside.<\/p>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/65f861cb3f354310e6ffb629_flexbox20-20center20multiple204.webp\" loading=\"lazy\" title=\"65f861cb3f354310e6ffb629_flexbox20-20center20multiple204\"><\/div>\n<\/figure>\n<h2>How to centrally position multiple elements<\/h2>\n<p>You can utilize flexbox to centrally position multiple elements within their container. This can be advantageous, for instance, if you have two card elements that need to be arranged and centered both horizontally and vertically: <\/p>\n<ol start=\"1\" role=\"list\">\n<li>Identify the parent container on the canvas or in the Navigator<\/li>\n<li>Navigate to <strong>Style panel<\/strong> &gt; <strong>Layout<\/strong> &gt; <strong>Display<\/strong><\/li>\n<li>Press on <strong>Flex<\/strong><\/li>\n<li>Click the vertical \u201c<strong>down arrow<\/strong>\u201d icon to adjust the flex direction to vertical<\/li>\n<li>Select the <strong>center<\/strong><strong>cell<\/strong> in the <strong>alignment box<\/strong> (you can also opt for <strong>Center<\/strong> from both the <strong>X<\/strong> and <strong>Y<\/strong><strong>axis<\/strong> dropdowns) <\/li>\n<\/ol>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/65f861d592caa70cf47521c4_flexbox20-20center20multiple.webp\" loading=\"lazy\" title=\"65f861d592caa70cf47521c4_flexbox20-20center20multiple\"><\/div>\n<\/figure>\n<p>Discover more about flexbox.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Use flexbox to align your elements perfectly in the center of their parent element.","protected":false},"author":2,"featured_media":5155,"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-5974","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\/5974","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=5974"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5974\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5278"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=5974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=5974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=5974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}