fixed element on top (z-index issue)
-
Hey
I have a text that i placed centered and fixed on my page. Everything worked placement-wise but somehow i cant put it on top of everything else with blend-mode difference. No matter what i put in the z-index.Can someone help?
the page: http://leandrodisler.com/archive/
password: lean.fixedarchive { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; text-align: center; white-space: nowrap; mix-blend-mode: difference; pointer-events: none; }
-
hey, add !important; after the 5, like this:
z-index: 5 !important;
I tried it in inspector and it works. Hope that helps!
-
worked. thank you so much!
Feb 28, 2025, 8:11 PM
2/3
Mar 3, 2025, 11:08 AM
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com