I want to create a Navigation with a dropdown (my class: nav-menu-1), and have been blocked now after several tries.
So in my navigation (class: nav-menu-1), each point is a dropdown. When the dropdown is open, I would like to have it in full width (I achieved this with position fixed, and position right and left 0).
My 1st question is if there is a better approach, as when I scroll the screen the full width box will now stay there.
But the next bigger problem, my 2nd question, this full width box is now overlaying my other elements on the left side. For the purpose of seeing it better, I changed the elements colour into a light red.
I seem to miss something. Also, my body has on purpose a padding of 60px on the left and right side (as my pictures go out by 60px on each side).
Hi @HGWeb thanks for your reply, very appreciated. I tried it out and changed the width into ‘auto’. Nothing changed. The dropdown full width container is still overlaying the other navigation menu’s as shown in my screenshot.
I did it. But now the dropdown has not the full width anymore, as it’s only taking the space around the text. But my goal was that the dropdown has a full width.