Currently, I am facing an issue with my menu layout as shown in this demo
The problem arises when the menu goes outside of its container, similar to the image below:
https://i.sstatic.net/nQA2K.png
This issue occurs because I have applied position: fixed;
to make the navbar stick to the top while scrolling. How can I adjust it to display properly before becoming fixed like in the example image below:
https://i.sstatic.net/0Sk9j.png
Thank you for your assistance.