I am dealing with a div and a footer. The sole purpose of my div is to display error messages. However, whenever the div receives a list of errors, it ends up covering the footer.
I attempted to make the footer "relative", but unfortunately, it appears in the middle of the screen instead of staying at the bottom where I need it to be.
Does anyone have any suggestions on how to make the footer responsive or offer another solution so that it doesn't disappear off the screen?
.box-errors {
overflow: auto;
min-height: 100px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: auto;
line-height: 58px;
background-color: #000;
color: #ffffffc4;
font-size: 12px;
text-align: center;
}
Note: The footer is black while the div is red.