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!
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
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