Currently, I am tackling the challenge of creating a responsive navigation bar. Despite my numerous attempts to troubleshoot, I am struggling to find a solution.
My current issues are as follows: 1) On wide screens, I aim to center the dropdown menu beneath its respective button title. 2) On smartphones/tablets, I want the dropdown menu to push down the other button titles when it appears, instead of overlapping them.
Regarding the first issue, I have experimented with adjusting the 'right' and 'left' attributes of the dropdown menu, but it remains stuck to the side of the screen regardless of any changes I make to the 'position' of the dropdown list and its parent element.
As for the second issue, I have played around with the 'position' property, but I still can't seem to get it to function as if it were static.
My preference is to resolve this using only HTML and CSS.
For a demonstration, visit: https://jsfiddle.net/SteliosKts/01o6cem5/10/
PS. Apologies if this is a repost; I simply cannot find a solution despite checking numerous related threads.