Here is the issue I am facing: The footer in my HTML code appears after the grid. How can I fix this problem and make my footer fixed? Below is my HTML and CSS code for reference:
<footer>
<li><a href="">Menu</a></li>
<li><a href="">Menu</a></li>
<li><a href="">Menu</a></li>
<li><a href="">Menu</a></li>
<li><a href="">Menu</a></li>
</footer>
css code:
footer{
width: 100%;
height: 150px;
background: black;
display:grid;
grid-template-columns: repeat(5, auto);
clear: both;
}
li {
float: left;
}
footer li a{
display: block;
line-height: 1.5;
}