I have been struggling to position the footer of my webpage at the bottom, but it seems to be stuck in the middle.
Despite watching tutorial videos and attempting to follow along, I haven't been able to resolve this issue.
Admittedly, my code is a bit messy as I've pieced together bits from various YouTube tutorials without success in fixing the footer problem.
body {
margin: 0;
padding: 0;
background: #004882;
height: 100px;
display: flex;
flex-direction: column;
}
html {
height: 100px;
margin: 0;
padding: 0;
}
.header {
width: 100%;
height: 150px;
display: black;
background-color: #101010
}
.logo {
height: 100%;
display: table;
float: left;
}
... (CSS code continues)
<footer id="footer">
<h1>This is a footer</h1>
</footer>