So I'm making a website and no matter what I do, I cannot get my footer acting the way I would like, I want it to be at the very bottom of the page (not floating) so it cannot be seen if there is a page full of content. I have tried many things, and looked all around but can't find the answer I need, sorry if this is a duplicate. Here is my CSS code, and the structure of my HTML.
This is my Html and CSS:
footer {
bottom: 0;
height: 10%;
min-height: 75px;
left: 0;
position: absolute;
width: 100%;
text-align: center;
background: #CAA400;
vertical-align: middle;
color: #232323;
}
<div>
lots of random stuff
</div>
<footer id="foot">
<p></p>
</footer>
I've tried using position: fixed
, position: absolute
, position: relative
, and many things, but I cannot seem to figure it out. I think it may be a problem with maybe a parent container in my CSS, but I'm not sure, any extra input to that would also be helpful, Thanks.