I've searched through various solutions to address this issue online and experimented with fixed, sticky, and absolute positioning as well as adjusting the margin-bottom property. However, I am still encountering a challenge with excessive white space at the bottom! The 'nav' element acts as the footer:
.main {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
margin-top: auto;
left: 0;
bottom: 0;
margin-bottom: 35px;
}
.events {
display: flex;
justify-content: center;
flex-direction: column;
margin-bottom: 35px;
}
.nav {
width: 100vw;
height: 100px;
display: flex;
justify-content: space-around;
align-items: center;
position: absolute;
background-color: #fbba5c;
margin-top: auto;
left: 0;
color: whitesmoke;
font-size: 0.5rem;
font-family: BlinkMacSystemFont, Roboto, Ubuntu, Oxygen, -apple-system,
"Segoe UI", Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
margin-bottom: -20px !important;
overflow: hidden;
}
Do you have any suggestions on what might be causing this issue? Any insights or advice would be greatly appreciated!