For some reason, I'm having trouble getting the footer to properly align at the bottom of the page. My body only seems to go halfway up the page. I tried wrapping everything in a main tag and setting a height on that, but it always ends up stopping at the same point. It's as if it's not recognizing the viewport properly and causing the issue. I'm new to coding, so any general advice on how to improve this would be greatly appreciated. Thanks in advance!
h1 {
font-family: 'Dancing Script', cursive;
text-align: center;
font-size: 4vmin;
}
p {
text-align: center;
font-size: 3vmin;
}
li {
font-size: 3vmin;
}
header {
text-align: center;
height: auto;
width: auto;
background-color: white;
box-shadow: 2px 2px 2px 1px gray;
margin-bottom: 2%;
margin-right: 1%;
}
#main {
position: relative;
min-height: 100vh;
}
(...)
</footer>
</div>