Currently in the process of learning CSS and HTML, I wanted to create a basic dropdown menu using CSS exclusively. However, there are some aspects that are unclear to me, so I would appreciate any assistance in figuring out what is happening.
Here is how it appears:
Why is Menu 1 being pushed to the top of the navigation bar? How can this be prevented? Why is Submenu 1 positioned to the right of Menu 1? What steps should be taken to correct this issue? Additionally, the height of my submenu is overflowing beyond the first UL element. Is this expected behavior?
I am hopeful that someone can offer insight into what is occurring, as it would greatly benefit my learning journey. While online tutorials are available, I believe that starting from scratch provides a more valuable learning experience. Any help at this point would be much appreciated.
Thank you!