😲😲😲😲😲😲😲😲😲😲😲
Pro Tip: Rather than using randomly high values for z-index use CSS custom properties instead.
z-index
Example:
:root { --z-level-one: 100; --z-level-two: 200; --z-level-three: 300; } div { z-index: var(--z-level-one); }
Now we can peacefully end the z-index war.
it's all level one tho 😂
the result of copy pasting.
Level three is still equal to level two...
I don't think it will change much...
div { z-index: var(--z-level-one-million); }
But now my div has to be on --z-level-one-and-a-half
--z-level-one-and-a-half
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
😲😲😲😲😲😲😲😲😲😲😲
Pro Tip: Rather than using randomly high values for
z-indexuse CSS custom properties instead.Example:
Now we can peacefully end the
z-indexwar.it's all level one tho 😂
the result of copy pasting.
Level three is still equal to level two...
I don't think it will change much...
But now my div has to be on
--z-level-one-and-a-half