{"id":4402,"date":"2024-04-15T02:05:22","date_gmt":"2024-04-14T18:05:22","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=4402"},"modified":"2024-04-15T23:26:35","modified_gmt":"2024-04-15T15:26:35","slug":"enclose-element-in-container-or-anchor-block","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/enclose-element-in-container-or-anchor-block\/","title":{"rendered":"Enclose element in container or anchor block"},"content":{"rendered":"<div class=\"docs_rich-text w-richtext\">\n<p id=\"\">While crafting your websites in Webflow, you might consider enclosing elements within a containing element like a container or anchor block to customize their appearance more conveniently. Now, you have the option to enclose an element in a container or anchor block swiftly, reducing the number of clicks and enhancing efficiency in your design process.\u00a0<\/p>\n<p id=\"\">During this tutorial, you\u2019ll understand:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">The process of enclosing an element in a container block<\/li>\n<li id=\"\">The process of enclosing an element in an anchor block<\/li>\n<li id=\"\">The process of enclosing an element in an H Flex or V Flex component<\/li>\n<li id=\"\">How to unenclose an element<\/li>\n<\/ol>\n<h6 id=\"\"><strong id=\"\">Please Note: <\/strong>You can enclose any element using these techniques, even elements linked to the CMS. Remember that you can also enclose individual component instances and elements within components, excluding the main components.<\/h6>\n<h2 id=\"\">How to enclose an element in a container block<\/h2>\n<p id=\"\">Container blocks are fundamental and versatile elements in web design. They serve multiple purposes like creating space or acting as dividers, but mainly they are used for grouping elements.\u00a0<\/p>\n<p id=\"\">To enclose an element in a container:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">Choose the element you wish to enclose on the Designer canvas<\/li>\n<li id=\"\">Press <strong id=\"\">Command<\/strong> + <strong id=\"\">Option<\/strong> + <strong id=\"\">G<\/strong> (on Mac) or <strong id=\"\">Control<\/strong> + <strong id=\"\">Alt<\/strong> + <strong id=\"\">G<\/strong> (on Windows)<\/li>\n<\/ol>\n<p id=\"\">Another way to enclose an element in a container is through the on-canvas menu:\u00a0<\/p>\n<ol id=\"\">\n<li>Right-click the element you want to enclose on the Designer canvas<\/li>\n<li>Hover over <strong id=\"\">Wrap in<\/strong><\/li>\n<li>Click <strong id=\"\">Container block<\/strong><\/li>\n<\/ol>\n<p id=\"\">Once the element is enclosed, the new container (i.e., the container block) will be automatically selected and expanded in the Navigator panel.<\/p>\n<h6 id=\"\">\u200d<strong id=\"\">Top tip:<\/strong> After enclosing your element in a container block, you can press <strong id=\"\">Command<\/strong> + <strong id=\"\">Enter<\/strong> (on Mac) or <strong id=\"\">Control<\/strong> + <strong id=\"\">Enter<\/strong> (on Windows) to add a class.<\/h6>\n<h2 id=\"\">How to enclose an element in an anchor block<\/h2>\n<p id=\"\">Anchor blocks function similarly to container blocks in terms of structure and layout, but the interior of an anchor block converts into a hyperlink.\u00a0<\/p>\n<p id=\"\">To enclose an element in an anchor block:\u00a0<\/p>\n<ol id=\"\">\n<li id=\"\">Select the element you want to enclose on the Designer canvas<\/li>\n<li id=\"\">Press <strong id=\"\">Command<\/strong> + <strong id=\"\">Option<\/strong> + <strong id=\"\">A<\/strong> (on Mac) or <strong id=\"\">Control<\/strong> + <strong id=\"\">Alt<\/strong> + <strong id=\"\">A<\/strong> (on Windows)\u00a0<\/li>\n<\/ol>\n<p id=\"\">To enclose an element in an anchor block via the on-canvas menu:\u00a0<\/p>\n<ol id=\"\">\n<li>Right-click the element you want to enclose on the Designer canvas\u00a0<\/li>\n<li>Hover over <strong id=\"\">Wrap in<\/strong><\/li>\n<li>Click <strong id=\"\">Anchor block\u00a0<\/strong><\/li>\n<\/ol>\n<p id=\"\">Once enclosed, the new container (i.e., the anchor block) will be automatically selected and expanded in the Navigator panel.<\/p>\n<h6 id=\"\"><strong id=\"\">Pro tip:<\/strong> You can press <strong id=\"\">Command<\/strong> + <strong id=\"\">Enter<\/strong> (on Mac) or <strong id=\"\">Control<\/strong> + <strong id=\"\">Enter<\/strong> (on Windows) to apply a class after enclosing the element in an anchor block.<\/h6>\n<h2 id=\"\">How to enclose an element in an H Flex or V Flex component<\/h2>\n<p id=\"\">To wrap an element in an H Flex component:\u00a0<\/p>\n<ol id=\"\">\n<li>Select the element you wish to enclose on the Designer canvas<\/li>\n<li>Press <strong id=\"\">Command<\/strong> + <strong id=\"\">H<\/strong> (on Mac) or <strong id=\"\">Control<\/strong> + <strong id=\"\">H<\/strong> (on Windows)\u00a0<\/li>\n<\/ol>\n<p id=\"\">To wrap an element in a V Flex component:\u00a0<\/p>\n<ol id=\"\">\n<li>Select the element you wish to enclose on the Designer canvas<\/li>\n<li>Press <strong id=\"\">Command<\/strong> + <strong id=\"\">G <\/strong>(on Mac) or <strong id=\"\">Control<\/strong> + <strong id=\"\">G<\/strong> (on Windows)\u00a0<\/li>\n<\/ol>\n<p id=\"\">To enclose an element in an H Flex or V Flex component through the on-canvas menu:\u00a0<\/p>\n<ol id=\"\">\n<li>Right-click the element you wish to enclose on the Designer canvas\u00a0<\/li>\n<li>Hover over <strong id=\"\">Wrap in<\/strong><\/li>\n<li>Choose <strong id=\"\">H Flex<\/strong> or <strong id=\"\">V Flex<\/strong><\/li>\n<\/ol>\n<h2 id=\"\">How to unenclose an element<\/h2>\n<p id=\"\">You also have the option to unenclose an element from a parent containing element (e.g., a container, section, anchor block, etc.). When unenclosing, the child elements retain their current positions.<\/p>\n<p id=\"\">To unenclose an element from its parent container:<\/p>\n<ol id=\"\">\n<li>Select the parent container you wish to remove<\/li>\n<li>Press <strong id=\"\">Command <\/strong>+ <strong id=\"\">Shift<\/strong> + <strong id=\"\">G<\/strong> (on Mac) or <strong id=\"\">Control <\/strong>+ <strong id=\"\">Shift<\/strong> + <strong id=\"\">G <\/strong>(on Windows)<\/li>\n<\/ol>\n<h6 id=\"\"><strong id=\"\">Note:<\/strong> If a child element requires a parent container to be present on the canvas (e.g., a form input field, a list item, etc.), you won\u2019t be able to unenclose the child element.<br \/><\/h6>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Use keyboard or canvas shortcuts to wrap your element in a div or link block.","protected":false},"author":2,"featured_media":5295,"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-4402","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\/4402","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=4402"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4402\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5231"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=4402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=4402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=4402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}