I have a div which has height:100%; but when I resize the window vertically this happens (look at the nav-bar on the left):
Here is the jsfiddle: https://jsfiddle.net/uygxjbr2/2/
This is the faulty element:
.nav {
/* position: fixed; */
width: 250px;
height: 100%;
min-height: 100%;
}
.nav ul {
list-style-type: none;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 40% 0;
height: 100%;
color: #fff;
background-color: #40404a;
}
I've tried using /* position: fixed; */ but that destroys the whole page design.
Also, another issue that I've noticed is that when I vertically resize the window the top of the .upper-page disappears, making it unscrollable.
What can I do ?
