{"id":5943,"date":"2024-04-14T20:03:08","date_gmt":"2024-04-14T12:03:08","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=5943"},"modified":"2024-04-14T20:03:08","modified_gmt":"2024-04-14T12:03:08","slug":"css-positioning-attributes","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/css-positioning-attributes\/","title":{"rendered":"CSS positioning attributes"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p id=\"\"><strong id=\"\">Exploring the following topics:<\/strong><\/p>\n<ol id=\"\">\n<li id=\"\">Place regulation<\/li>\n<li id=\"\">Corresponding positioning<\/li>\n<li id=\"\">Exact positioning<\/li>\n<li id=\"\">Unchanging positioning<\/li>\n<li id=\"\">Attached positioning<\/li>\n<li id=\"\">Control over positions and attributes<\/li>\n<li id=\"\">Floating setups<\/li>\n<li id=\"\">Clarification settings<\/li>\n<\/ol>\n<p id=\"\">The location attribute decides an element\u2019s placement on the page. Once you establish an element&#8217;s position, you can tweak the top, bottom, left, and right attributes.<\/p>\n<h2 id=\"\">Place regulation<\/h2>\n<p id=\"\">Every element has a fixed placement by default, so the element will hold onto the document flow. Elements with fixed positioning display in the sequence they\u2019re stacked. Without added styling, they won&#8217;t overlap, and various elements won&#8217;t possess different default principles. The sole motive to define an element as fixed is to eliminate the applied positioning.<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1600px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91ddfe2_5f50fb829781002ee6047476_ezprntno_ophtrkcdszkmfzjw8-ozlvvjpwxnokna46rk4rghfcfdbf84t60xphvg0mvmtfwg-2_5nsycx7f3bwpbcouixzplg0rayel-a1nimj7c_haohsgs6a-xqjpoqzd1jbe.jpeg\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ca62b34d96dd91ddfe2_5f50fb829781002ee6047476_ezprntno_ophtrkcdszkmfzjw8-ozlvvjpwxnokna46rk4rghfcfdbf84t60xphvg0mvmtfwg-2_5nsycx7f3bwpbcouixzplg0rayel-a1nimj7_c_haohsgs6a-xqjpoqzd1jbe\"><\/div>\n<\/figure>\n<h2 id=\"\">Corresponding positioning<\/h2>\n<p id=\"\">An element configured as corresponding is placed in relation to its typical position. A corresponding setting without additional placement attributes included (top, left, bottom, or right) won&#8217;t be altered. This is because it\u2019s in relation to itself precisely as if you maintained it as fixed. Defining the top, right, bottom, and left properties of a corresponding element will shift it from its ordinary position. Different content won&#8217;t adapt to fit inside any gap left by the element.<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1600px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91ddfff_5f50fb82ce335431e0f3f5eb_np130jvrax_vcxwsjsiducykum0czt5u6x5bej6hllmlyoqz7nawgtet6bnkhe9pojiegzlhvhcsdwaqiglrkmhme5nbzvab6naji-xpqonqzwpxuhwcjkzusyoycovwqjjciun9\"><\/div>\n<\/figure>\n<p id=\"\">An element with corresponding positioning can overlap other elements without impacting their placement or obstructing the standard document flow.<\/p>\n<p id=\"\">A couple of other things transpire when you employ corresponding location on an element:<\/p>\n<ol id=\"\">\n<li id=\"\">It initiates the utilization of z-axis on that element. This doesn\u2019t function with fixed elements. Even if you don\u2019t establish a z-axis value, this element will still emerge above any other fixed element it intervenes with. The z-axis is accessible for any element not designated as fixed.\u00a0<\/li>\n<li id=\"\">It confines utterly positioned child elements. Any element that functions as a child of a corresponding element, or any placement distinct from fixed, can be precisely positioned within that element.\u00a0<\/li>\n<\/ol>\n<p id=\"\">Expand your understanding about applying a z-axis value.<\/p>\n<h2 id=\"\">Exact positioning<\/h2>\n<p id=\"\">To displace an element from the standard document flow, exact placement is a terrific choice. The position of an exact element isn\u2019t influenced by other elements and doesn\u2019t impact the placement of other elements.\u00a0<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1600px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91ddffa_5f50fb83e53f610313ed8605_2iiotb8khk_pyds2ncxxb-igetjxwmabyqw-an13r8-htvnpbkzhslzjzhmoq2pzst-3tvugpcl2njjchinf4uko2l8yxkrrnx8kxgyvvoblixakfr5oxoigdzxgv7infjm4poyy\"><\/div>\n<\/figure>\n<p id=\"\">By default, the placement of the element is in relation to the body element, but you can position any exact element inside an element if that parent is designated as anything aside from fixed.<\/p>\n<p id=\"\">Leverage the placement attributes top, left, bottom, and right to establish the position \u2014 these values will be with respect to the nearest parent element with configurations differing from fixed.<\/p>\n<h2 id=\"\">Unchanging positioning<\/h2>\n<p id=\"\">Unchanging elements are placed in relation to the viewport or the browser window.<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1600px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91ddfeb_5f50fb83e1acdfb596df6233_2p-swauamkvslwpw-i94dkgxcyquwqxhusx9yqfdpg_cj-gkclofw8ztbubog4vodvmnhsq26qcgnuliglqzonk6flabvclcry5vxf8ktxjzfalrxkhalirbet1pxw2i1og1asoe\"><\/div>\n<\/figure>\n<p id=\"\">During page scrolling, unchanging elements remain fixed in their positions. This positioning choice is frequently utilized for stable navigations.<\/p>\n<h2 id=\"\">Attached positioning<\/h2>\n<p id=\"\">Attached elements will interchange between corresponding and unchanging positioning based on the viewer\u2019s scrolling position.<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1600px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91de012_5f50fb8338fa697df20074cc_mbj0_rx8x14n3hsojaftmafqlnpzydayd2r9vge8f3er2fc0-10tmxh1tyg5xp52dbkn7evlj4xojp_jib8cwlmzk0o9mz9vivhlhnudkyfbenvtk_3snoxfoyy6phugqw_ohfrz\"><\/div>\n<\/figure>\n<p id=\"\">An attached element is in relation to the document flow until a defined scroll level is reached. At that moment, it switches to the behavior of an unchanging element within its immediate parent. Once the attached element reaches the base of its parent, it will cease scrolling.<\/p>\n<p id=\"\">You need to specify at least one placement value for the top, bottom, left, or right side for attached positioning to function. Location attached might not function accurately if any parent element has an established height or overflow designated as hidden, scroll, or auto.<\/p>\n<p id=\"\">There are some browsers that don\u2019t endorse attached positioning.<a href=\"https:\/\/caniuse.com\/#search=sticky\" id=\"\"> Check which browsers endorse position attached<\/a>.<\/p>\n<h2 id=\"\">Placement controls and values<\/h2>\n<p id=\"\">For corresponding, exact, unchanging, and attached placement attributes, you have the following controls in the Style panel:<\/p>\n<ul id=\"\">\n<li id=\"\">Placement controls<\/li>\n<li id=\"\">Correlativity indicator<\/li>\n<li id=\"\">Z-axis value field<\/li>\n<\/ul>\n<h3 id=\"\">Placement controls<\/h3>\n<p id=\"\">For elements with exact and unchanging positions, you\u2019ll encounter presets enabling you to position the element in relation to the element indicated in the correlativity indicator.<\/p>\n<p id=\"\">You can select any of the subsequent preset positions:<\/p>\n<ul id=\"\">\n<li id=\"\">Top left: specifies the values as follows: top: 0px and left: 0px<\/li>\n<li id=\"\">Top right: indicates the values as follows: top: 0px and right: 0px<\/li>\n<li id=\"\">Bottom left: establishes the values as bottom: 0px and left: 0px<\/li>\n<li id=\"\">Bottom right: configures the values as bottom: 0px and right: 0px<\/li>\n<li id=\"\">Left: assigns values like top: 0px, left: 0px, and bottom: 0px<\/li>\n<li id=\"\">Right: allocates values like top: 0px, right: 0px, and bottom: 0px<\/li>\n<li id=\"\">Top: sets values like top: 0px, left: 0px, and right: 0px<\/li>\n<li id=\"\">Bottom: defines values as bottom: 0px, left: 0px, and right: 0px<\/li>\n<li id=\"\">Full: specifies values like top: 0px, bottom: 0px, left: 0px, and right: 0px (covering the entire relative parent or body)<\/li>\n<\/ul>\n<p id=\"\">The manual controls allow you to alter the presets or switch to the auto value for each side such as top, bottom, left, and right. You can adjust the value for each side either by manipulating the control or tapping it to pick a preset value or enter a custom value.<\/p>\n<ul id=\"\">\n<li id=\"\">Top: increasing it pushes the element downward from the top<\/li>\n<li id=\"\">Left: increasing it moves the element off from the left towards the right<\/li>\n<li id=\"\">Right: increasing it moves the element off from the right towards the left<\/li>\n<li id=\"\">Bottom: increasing it moves the element upwards from the bottom<\/li>\n<\/ul>\n<p id=\"\">Utilizing negative values for any of these might move it in the opposite direction and potentially shift it beyond the parent element&#8217;s border.<\/p>\n<h4 id=\"\">Positioning Indicator<\/h4>\n<p id=\"\">The positioning indicator reveals which element your selected item is positioned in relation to.<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1600px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91ddfee_5f50fb851fdc7d257228b6bc_vb6qsfieeavlbyswoo3dstkgenpqwidwtxhhhq8o4v-xziwrdgever0vyomqtsvj4wt56sobzvjdmrd_oruhxwmquh3djwuifoxnybvjbrlao2rh0sysl1sfo9ae9y5ffvtw5ep0.jpeg\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ca62b34d96dd91ddfee_5f50fb851fdc7d257228b6bc_vb6qsfieeavlbyswoo3dstkgenpqwidwtxhhhq8o4v-xziwrdgever0vyomqtsvj4wt56sobzvjdmrd_oruhxwmquh3djwuifoxnybvjbrlao2rh0sysl1sfo9ae9y5ffvtw5ep0\"><\/div>\n<\/figure>\n<p id=\"\">Remember, an element set to <strong id=\"\">relative<\/strong> positioning is positioned relative to itself.<\/p>\n<p id=\"\">An element set to absolute is positioned relative to a parent element. By default, this may be the body element. If you want to absolutely position an element within a specific parent, modify the position of that predecessor to anything other than static.<\/p>\n<p id=\"\">A <strong id=\"\">fixed<\/strong> element is positioned relative to the page body and remains fixed even when scrolling through the page<\/p>\n<p id=\"\">A sticky element is positioned relative to its immediate parent element. Sometimes, this will be the page body.<\/p>\n<h4 id=\"\">Layer Index<\/h4>\n<p id=\"\">The layer index represents an element&#8217;s position on the theoretical z-axis extending into and out of your computer screen. Initially, elements possess an auto layer index, and elements at the bottom of the page will stack above those above them, while elements on the right will stack above those on the left. Static elements consistently stack beneath positioned elements with a position of relative, absolute, fixed, or sticky set.<\/p>\n<p id=\"\">Positioned elements might overlap other elements in the natural document flow, hence you can adjust the layer index value of any positioned element to modify its default stacking order. Higher values stack over lower values. Layer index values can range from 0 to 2147483647. Negative values are permissible, but using them may result in compromised element visibility as your element could render beneath most other elements.<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"2251px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91de068_5f57aaf90b15f37082308873_14.jpeg\" loading=\"lazy\" id=\"\" width=\"auto\" height=\"auto\" title=\"64b94ca62b34d96dd91de068_5f57aaf90b15f37082308873_14\"><\/div>\n<\/figure>\n<h4 id=\"\">Layer Index on Nested Elements<\/h4>\n<p id=\"\">When the layer index is set to auto, the arrangement order of the element aligns with its parent&#8217;s arrangement order. These elements can be stacked in relation to the parent element but will remain within the parent element&#8217;s z-axis concerning other elements. For instance, if element A holds a higher layer index than element B, a child of element B can never surpass element A regardless of how high the layer index value of element B is.<\/p>\n<h2 id=\"\"><strong id=\"\">Floating Configurations<\/strong><\/h2>\n<p id=\"\">To permit text to wrap around an element, float the element to the left or right. To achieve this, activate the float left or float right properties in the Style panel.<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"1600px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91ddff4_5f50fb83189fd295d08e45a5_mru3mmmk5bhidpg9icrwfwdrr1athzqgomoqqzjtnpfiahfqpkkmgsliiul8qm4wvvyny77hqouwxcn-67vszsbq_pws_nrhz1ewzun4d3rrolnrsfa-dgbo7quwzozazscx6cor.jpeg\" id=\"\" width=\"auto\" height=\"auto\" loading=\"auto\" title=\"64b94ca62b34d96dd91ddff4_5f50fb83189fd295d08e45a5_mru3mmmk5bhidpg9icrwfwdrr1athzqgomoqqzjtnpfiahfqpkkmgsliiul8qm4wvvyny77hqouwxcn-67vszsbq_pws_nrhz1ewzun4d3rrolnrsfa-dgbo7quwzozazscx6cor\"><\/div>\n<\/figure>\n<p id=\"\">You may float an element to the left or right, or none, which maintains its default position in the page&#8217;s flow.<\/p>\n<figure id=\"\" class=\"w-richtext-figure-type-image w-richtext-align-fullwidth\" data-rt-type=\"image\" data-rt-align=\"fullwidth\" data-rt-max-width=\"2251px\">\n<div id=\"\"><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b94ca62b34d96dd91de006_5f57a767fa5a097c95989f1b_12.jpeg\" loading=\"lazy\" id=\"\" width=\"auto\" height=\"auto\" title=\"64b94ca62b34d96dd91de006_5f57a767fa5a097c95989f1b_12\"><\/div>\n<\/figure>\n<p id=\"\">Floating multiple elements will arrange them side by side. This layout method is utilized in various native Webflow elements like Collection lists and navigation links. Alternatively, you can achieve these layout tasks<a href=\"https:\/\/help.webflow.com\/article\/the-flexbox-guide\" id=\"\"> with flexbox<\/a>.<\/p>\n<h3 id=\"\">Float None<\/h3>\n<p id=\"\">None serves as the standard setting for most elements and positions the element in the regular document flow. If an element inherits a float setting, such as from a larger breakpoint, you can restore its natural position on the page by setting the float to none.<\/p>\n<h3 id=\"\">Float Left<\/h3>\n<p id=\"\">Floating an element to the left aligns it to the left within the parent element. This also aligns any element to the right or below, directly adjacent to the element unless a clear setting is applied.<\/p>\n<h3 id=\"\">Float Right<\/h3>\n<p id=\"\">Floating an element to the right aligns it to the right within the parent element. Any lengthy paragraph or rich text directly below the floating element will wrap around that element unless a clear property is set.<\/p>\n<h2 id=\"\"><strong id=\"\">Clear Configurations<\/strong><\/h2>\n<p id=\"\">Enabling clear on an element ensures it will not wrap around a floating element. This setting can be implemented on any element stacking beneath the floating element but cannot be applied to the floating element itself.<\/p>\n<p id=\"\">An element with the clear property set will not shift up beside the float as desired by the float but will instead relocate downwards past the float<\/p>\n<h3 id=\"\">Clear None<\/h3>\n<p id=\"\">Clear None represents the default setting for most elements. Elements set to clear none will accommodate next to or wrap around any floating element immediately above it in the document flow.<\/p>\n<p id=\"\">If an element inherits a clear setting, such as from a larger breakpoint, you can clear any prevailing clear setting by establishing the clear to none.<\/p>\n<h3 id=\"\">Clear Left<\/h3>\n<p id=\"\">Clear Left prevents an element from wrapping around a left-floating element.<\/p>\n<h3 id=\"\">Clear Right<\/h3>\n<p id=\"\">Clear Right prohibits an element from wrapping around a right-floating element.<\/p>\n<h3 id=\"\">Clear Both<\/h3>\n<p id=\"\">Clear Both prevents an element from wrapping around any floating element, regardless of whether it&#8217;s floating to the left or right.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Customize the position of your elements relative to themselves, to parent or sibling elements, or to the viewport.","protected":false},"author":2,"featured_media":5944,"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-5943","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\/5943","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=5943"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/5943\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5944"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=5943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=5943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=5943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}