I'm currently working on customizing a header menu to my liking but have limited experience with CSS.
The header menu consists of two main items, each with a dropdown. I envision the first menu item to look like this upon hover: https://i.sstatic.net/UXJP8.png
And for the second menu item to appear as follows when hovered over: https://i.sstatic.net/Zqq2L.png
Note: It is important for "Menu 1" and "Menu 2" to be positioned exactly as shown in the images, with the Dropdown for Menu 1 located to the right of Menu 1 and the dropdown for Menu 2 placed to the left of Menu 2. Additionally, there should be a central "Logo" element.
You can view what I've accomplished so far in this fiddle (check it out here).
I am facing two issues:
- The width of the menu items is not 100%. I aimed for each menu item to occupy 25% of the space and have a logo-div at the center filling up the rest (with margin: auto) to make it altogether 100%.
- When hovering, the active main menu item gets pushed down.
How can I resolve these issues to achieve the desired functionality?
add CSS code snippet here
HTML code snippet here