After following a tutorial on responsive navigation bars (https://www.w3schools.com/howto/howto_js_topnav_responsive.asp), I successfully implemented the navbar on my website. However, I encountered an issue with the icon placement when clicked. Here is how it looks initially:
https://i.sstatic.net/X9rr6.png
But when the icon is clicked, it moves to the top right corner as shown here:
https://i.sstatic.net/2F71r.png
I have tried adjusting various CSS settings but haven't been able to fix this unexpected behavior. Below is the HTML code snippet for reference:
#nav-div {
font-family: 'Manaspace Regular';
...
...
The JavaScript responsible for handling the dropdown functionality is located at the end of the code snippet. Any assistance in resolving this issue would be greatly appreciated as it is the final step needed to complete my website setup!