I am currently facing an issue with a bug in my project that I am working on.
The mobile menu is not taking the full height of the viewport when the screen size is less than 768px, even though it has been set to 100%.
It only becomes visible when toggled via the hamburger icon.
The nav
element is positioned absolutely, and the mobile menu is the last child element within the nav
element.
The nav
element is also positioned absolutely for a transparent background so that the section
below it can be displayed at the top of the page.
I want the div
with the class mobile_links
to occupy the full height of the page on mobile devices when toggled.
I have found a temporary solution by setting the position
property of the section below the nav
to relative
and adjusting the top spacing.
In order for this workaround to function correctly, I will need to change the position
property of the nav
element to static
.
However, I am not entirely satisfied with this solution as it introduces space between the two section
elements on the page.
Is there a way to achieve full height for the mobile menu without altering the current position
properties?
To view the specific page I am referring to, please visit: