I'm working on a flex container
with a nested div for top navigation
. I want the top-nav
to expand and occupy the full height of the viewport when it expands. Setting a height of 100vh
seems like the obvious choice, but I'm looking for a more widely supported alternative.
The html
and body
have a height of 100%
, yet the content overflows, allowing me to scroll the page.
This is my current CSS:
.top-nav .top-nav-links-wrapper {
position: fixed;
width: 100%;
background-color: #fff;
top: 50px;
left: 0;
height: 100%;
}
Is there another way to achieve this without setting the height to 100vh
?