Z index fixed element
-
wrote on Oct 24, 2019, 10:10 AM last edited by lortnok Oct 24, 2019, 8:43 AM
I have a fixed element (text) positioned with the grider as following:
.fixed-element{
position: fixed;
top: 1%;
right: 2%;
z-index: 5;
}
and this one works perfectlybut I also have a logo on the other side (image) and that one is always behind the project thumbnails doesn't matter how I set the Z index. (The selector is correct since the logo is fixed)
.fixedlogo{
position: fixed;
top: 2%;
right: 91%;
z-index: 1000000;
}
What could be wrong? -
I have a fixed element (text) positioned with the grider as following:
.fixed-element{
position: fixed;
top: 1%;
right: 2%;
z-index: 5;
}
and this one works perfectlybut I also have a logo on the other side (image) and that one is always behind the project thumbnails doesn't matter how I set the Z index. (The selector is correct since the logo is fixed)
.fixedlogo{
position: fixed;
top: 2%;
right: 91%;
z-index: 1000000;
}
What could be wrong?wrote on Oct 24, 2019, 1:12 PM last edited byI guess the problem is that it is a child element?, I tried to find a way to fix it by inspecting but I still have no clue how to fix it. Please let me know if you have any idea, thanks a lot!
-
wrote on Oct 25, 2019, 4:39 AM last edited by
adding 0's to z-index doesn't help ;)
i've had this issue and solved it before,
send the site url, with the code. i'll take a look.
-
adding 0's to z-index doesn't help ;)
i've had this issue and solved it before,
send the site url, with the code. i'll take a look.
wrote on Oct 25, 2019, 10:57 AM last edited by@dani thanks a lot, I solved it. At the end I created custom html and css for those elements. There was a topic also about more or less the same issue and what I found out is with the gridder you basically cannot use Z-index unfortunately. But if you have a solution for that let me know :)
-
-
wrote on Oct 28, 2019, 2:17 PM last edited by
Thank you Marius!
-
wrote on May 17, 2023, 2:20 PM last edited byThis post is deleted!
-
wrote on Sep 21, 2023, 12:50 PM last edited by
hello, same problem here
the z index is in 10px and i want to be in 0
but dont know how to change it on the wordpress or in the css
could you help me? thanks -
hey i will release an update later today now that will make position fixed work again
can u update and then see if it works?
if not can you post the link here and i will take a look
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
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