<?xml 
version="1.0" encoding="utf-8"?>


<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr='http://purl.org/syndication/thread/1.0' >
	<title>#z-index - Seenthis</title>

	<link href="https://seenthis.net/tag/z-index" />
        <id>https://seenthis.net/tag/z-index</id>
        <updated>2026-09-11T23:11:58Z</updated>
        <link rel="self" href="https://seenthis.net/tag/z-index/feed" />







	<entry>
	<id>urn:uuid:69c04b15-8e1c-4617-a7af-4a20576289e2</id>
	<title>The Value of z-index | CSS-Tricks</title>
	<author>
		<name>b_b  (@b_b)</name>
		<uri>https://seenthis.net/people/b_b</uri>
		<email>b_b@seenthis.net</email>
		
	</author>
	<published>2026-03-22T20:03:33Z</published>
	<updated>2026-03-22T20:03:33Z</updated>
	
	 <link href="https://seenthis.net/messages/1164104" />
	
	<link rel="edit" href="https://seenthis.net/api/messages/1164104"/>
	<summary>The Value of #z-index | CSS-Tricks
https://css-tricks.com/the-value-of-z-index/
https://i0.wp.com/css-tricks.com/wp-content/uploads/2026/03/s_8926F490CDA74C2CA8D0B6E99405A055C6BF40F4CCE75686F0BAADE6ECBD39FB_1772115867944_image.png

❝To maintain a clean and scalable codebase, here are the golden rules for working with z-index:

- No magic numbers: Never use arbitrary values like 999 or 10001. If a number isn’t tied to a system, it’s a bug waiting to happen.
- Tokens are mandatory: Every z-index in your CSS should come from a token, either a global layer token or a local positioning token.
- It’s rarely the value: If an element isn’t appearing on top despite a “high” value, the problem is almost certainly its Stacking Context, not the number itself.
- Think in layers: Stop asking “how high should this be?” and start asking “which layer does this belong to?”
- Calc for connection: Use calc() to bind related elements together (like an overlay and its background) rather than giving them separate, unrelated tokens.
- Local contexts for local problems: Use local tokens (--z-top, --z-bottom) and internal stacking contexts to manage complexity within components.❞

#css</summary>
	<content type="html"><![CDATA[<div lang="en" dir="ltr"><p>The Value of <span class='lien_tag'>#<a href='https://seenthis.net/tag/z-index'>z-index</a></span> | CSS-Tricks<br><span class='lien_lien'><span class='lien_lien_total'><a href='https://seenthis.net/sites/7282461336008270002'>▻</a></span><a href="https://css-tricks.com/the-value-of-z-index" class='spip_out' title="The Value of z-index | CSS-Tricks" hreflang="en"><span class='lien_court'><span class='lien_protocol'>https://</span><span class='lien_racine'><span class='lien_host'>css-tricks.com</span>/</span><span class='lien_fin'>the-value-of-z-index</span></span></a></span><br><div class='seenthis_pics seenthis_pics_1'><a onclick='return false;' href='https://i0.wp.com/css-tricks.com/wp-content/uploads/2026/03/s_8926F490CDA74C2CA8D0B6E99405A055C6BF40F4CCE75686F0BAADE6ECBD39FB_1772115867944_image.png' class='display_box'><span class='image' style='padding-bottom:56.25%'><img src='https://seenthis.net/local/cache-vignettes/L600xH338/s_8926F490CDA74C-9cfe3569-0739f.png' alt='' data-photo='https://i0.wp.com/css-tricks.com/wp-content/uploads/2026/03/s_8926F490CDA74C2CA8D0B6E99405A055C6BF40F4CCE75686F0BAADE6ECBD39FB_1772115867944_image.png' data-photo-h='1080' data-photo-w='1920' /></span><span class="lien_court"><span class="lien_off"> https://i0.wp.com/css-tricks.com/wp-content/uploads/2026/03/s_8926F490CDA74C2CA8D0B6E99405A055C6BF40F4CCE75686F0BAADE6ECBD39FB_1772115867944_image.png </span></span></a></div></p><blockquote lang="en" dir="ltr"><p> To maintain a clean and scalable codebase, here are the golden rules for working with z-index:</p><p>– No magic numbers: Never use arbitrary values like 999 or 10001. If a number isn’t tied to a system, it’s a bug waiting to happen.<br>– Tokens are mandatory: Every z-index in your CSS should come from a token, either a global layer token or a local positioning token.<br>– It’s rarely the value: If an element isn’t appearing on top despite a “high” value, the problem is almost certainly its Stacking Context, not the number itself.<br>– Think in layers: Stop asking “how high should this be?” and start asking “which layer does this belong to?”<br>– Calc for connection: Use calc() to bind related elements together (like an overlay and its background) rather than giving them separate, unrelated tokens.<br>– Local contexts for local problems: Use local tokens (&mdash;z-top, &mdash;z-bottom) and internal stacking contexts to manage complexity within components. </p></blockquote><p><span class='lien_tag'>#<a href='https://seenthis.net/tag/css'>css</a></span></p></div>]]></content>
	
	<link rel="related" href="https://css-tricks.com/the-value-of-z-index" title="The Value of z-index | CSS-Tricks" hreflang="en"/>
	
	<link rel="related" href="https://i0.wp.com/css-tricks.com/wp-content/uploads/2026/03/s_8926F490CDA74C2CA8D0B6E99405A055C6BF40F4CCE75686F0BAADE6ECBD39FB_1772115867944_image.png" hreflang="fr"/>
	
	
	<category term="z-index" label="z-index" scheme="https://seenthis.net/tag/z-index"/>
	<category term="css" label="css" scheme="https://seenthis.net/tag/css"/>
</entry>

	<entry>
	<id>urn:uuid:52af14a0-bf34-486e-9c00-5a856dd28e9b</id>
	<title>What You May Not Know About the Z-Index Property &#8211; Tuts+ Tutorials</title>
	<author>
		<name>severo  (@severo)</name>
		<uri>https://seenthis.net/people/severo</uri>
		<email>severo@seenthis.net</email>
		
	</author>
	<published>2013-12-16T14:56:32Z</published>
	<updated>2013-12-16T14:56:32Z</updated>
	
	 <link href="https://seenthis.net/messages/208125" />
	
	<link rel="edit" href="https://seenthis.net/api/messages/208125"/>
	<summary>What You May Not Know About the Z-Index Property – Tuts+ Tutorials
http://dev.tutsplus.com/articles/what-you-may-not-know-about-the-z-index-property--webdesign-16892

http://cdn.tutsplus.com/webdesign/uploads/2013/11/stacking-order1.png

#css</summary>
	<content type="html"><![CDATA[<div lang="en" dir="ltr"><p>What You May Not Know About the Z-Index Property – Tuts+ Tutorials<br><span class='lien_lien'><span class='lien_lien_total'><a href='https://seenthis.net/sites/376255'>▻</a></span><a href="http://dev.tutsplus.com/articles/what-you-may-not-know-about-the-z-index-property--webdesign-16892" class='spip_out' title="What You May Not Know About the Z-Index Property – Tuts+ Tutorials" hreflang="en"><span class='lien_court'><span class='lien_protocol'>http://</span><span class='lien_racine'><span class='lien_host'>dev.tutsplus.com</span>/</span><span class='lien_off'>articles/</span><span class='lien_fin'><span class='lien_fin_coupee'>what-you-may-not-know-abo</span><span class='lien_fin_cachee'>ut-the-z-index-property--webdesign-16892</span></span></span></a></span></p><p><div class='seenthis_pics seenthis_pics_1'><a onclick='return false;' href='http://cdn.tutsplus.com/webdesign/uploads/2013/11/stacking-order1.png' class='display_box'><span class='image' style='padding-bottom:60%'><img src='https://seenthis.net/local/cache-vignettes/L600xH360/stacking-order1-3e50a223-934f3.png' alt='' data-photo='http://cdn.tutsplus.com/webdesign/uploads/2013/11/stacking-order1.png' data-photo-h='360' data-photo-w='600' /></span><span class="lien_court"><span class="lien_off"> http://cdn.tutsplus.com/webdesign/uploads/2013/11/stacking-order1.png </span></span></a></div></p><p><span class='lien_tag'>#<a href='https://seenthis.net/tag/css'>css</a></span></p></div>]]></content>
	
	<link rel="related" href="http://dev.tutsplus.com/articles/what-you-may-not-know-about-the-z-index-property--webdesign-16892" title="What You May Not Know About the Z-Index Property &#8211; Tuts+ Tutorials" hreflang="en"/>
	
	<link rel="related" href="http://cdn.tutsplus.com/webdesign/uploads/2013/11/stacking-order1.png" hreflang="fr"/>
	
	
	<category term="css" label="css" scheme="https://seenthis.net/tag/css"/>
</entry>

</feed>
