{"id":347,"date":"2012-05-10T14:29:25","date_gmt":"2012-05-10T14:29:25","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=347"},"modified":"2022-02-17T07:14:04","modified_gmt":"2022-02-17T07:14:04","slug":"zindex","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/css\/zindex","title":{"rendered":"zindex"},"content":{"rendered":"<p>\nz-index sets the stack order of the element.\n<\/p>\n<p>\nIt only works on positioned elements (position:absolute, position:relative, or position:fixed).\n<\/p>\n<p>\nIt&#39;s natural to assume elements with higher z-index values are in front of elements with lower z-index values, and any element with a z-index is in front of any element without a z-index. &nbsp;This is how it can work,&nbsp;but it can also be more completx than that &#8211; see <a href=\"http:\/\/philipwalton.com\/articles\/what-no-one-told-you-about-z-index\/\">here<\/a>.\n<\/p>\n<pre>\r\n<code>\r\nposition: relative;\r\n\r\nz-index: auto;\t\t\t\/* Sets the stack order equal to its parents. This is default *\/\r\n\r\nz-index: -1;\t\t\t\/* Push it to the background *\/\r\n\r\nz-index: 1;\r\n<\/code><\/pre>\n<h4>\n&nbsp;<br \/>\n<\/h4>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>z-index sets the stack order of the element. It only works on positioned elements (position:absolute, position:relative, or position:fixed). It&#39;s natural to assume elements with higher z-index values are in front of elements with lower z-index values, and any element with a z-index is in front of any element without a z-index. &nbsp;This is how it [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-347","post","type-post","status-publish","format-standard","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":5,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":1141,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/347\/revisions\/1141"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}