Site URL: http://empiricalwisdom.com
Hello!
I am attempting to restructure the layout of the mobile overlay menu by bringing the button up beneath the other nav links (effectively making it one clean list). By default, the button is displayed at the bottom of the screen, detached from the other nav elements.
I was able to successfully move the button up beneath the other links by using the "bottom:" property, but this option is not responsive to changes in viewport height. Thus, when the height of the screen becomes smaller, the button begins to overlap the other nav links. See pictures below for example.
I'm hoping to make this change to the mobile menu layout more responsive, so that the button maintains its even spacing from the other links and never overlaps. Would greatly appreciate your help @tuanphan !
Thanks in advance 🙂
The default mobile overlay menu layout (button displayed at bottom):
The spacing I'd like to maintain responsively:
The current unresponsive effect of my code when the viewport height becomes shorter: