Horizontal menu – slide behind header
-
Hello support,
hello Pradnya,I have a horizontal menu with a fixed header on my site.
I’m learning CSS bit by bit (“always hamburger” topic – if you can remember).
Here is my custom code for a horizontal menu and a screen shot of what it looks like right now./* Flyout TOP */ .always-hamburger .guten-nav-menu.guten-element .gutenverse-menu-wrapper { max-width: 90%; height: auto !important; top: -110%; left: unset; right: 5%; z-index: -1 !important; transition: top 4s cubic-bezier(0.6, 0.1, 0.68, 0.53); } .always-hamburger .guten-nav-menu.guten-element .gutenverse-menu-wrapper.active { max-width: 90%; height: auto !important; top: 71px; left: unset; right: 5%; z-index: -1 !important; }
Everything actually works as expected but the menu should scroll down BEHIND the header (fixed). Everything I’ve tried to adjust with z-index doesn’t work. I’ll try to improvise a picture of what it should look like.
I use my own hamburger icon. When the icon is clicked on the smartphone, it turns black (hover). When I click it again the menu disappears which is correct but the icon stays black (hover). It should turn to white again (normal). Here the code for the custom icon:
.always-hamburger .guten-nav-menu.guten-element .gutenverse-hamburger-menu i::before { display: block; content: ' '; background-image: url("https://192.168.2.30/wp-content/uploads/2022/11/Hamburger-NEW_weiss.svg"); background-size: 45px 30px; width: 45px; height: 30px; background-repeat: no-repeat; background-position: center center; } .always-hamburger .guten-nav-menu.guten-element .gutenverse-hamburger-menu:hover i::before { background-image: url("https://192.168.2.30/wp-content/uploads/2022/11/Hamburger-NEW_schwarz.svg"); }
For me it would be great to be able to choose a horizontal menu already in the navigation block, as well as the slide direction (left, right, top).
Many thanks in advance, maybe there is a solution for my concern.
- The topic ‘Horizontal menu – slide behind header’ is closed to new replies.