I have a footer shown below that shows up on all pages, I want that footer to stay at the bottom of the webpage content, and in case the content does not overflow the height of the viewport, I want this footer to stay at the bottom of the viewport. How do I achieve this?
Also would be nice if I could make this compatible or not screwy with a phone-like viewport
I also don't want the position to be fixed cause this just causes the footer to stay at the bottom of my screen even as I scroll.
#footer {
width: 100vw;
min-height: 15vh;
background-color: var(--blue-black);
color: white;
display: table;
}
<div id="footer">
<div id="footer-content-table">
<div class="footer-box contact-us">
<div class="footer-box-title">
Contact Us
</div>
<div id="footer-contacts-list">
<a class="footer-contact" href="www.secretish.com">
<img src="/logo" alt="Our logo">
</a>
</div>
</div>
<div class="footer-box other-links">
<div class="footer-box-title">
Other Links
</div>
<div id="footer-links-list">
<a href="/about" class="footer-link">About Us</a>
<a href="/report" class="footer-link">Report a Problem</a>
</div>
</div>
</div>
<div id="footer-credit">Powered by bleep of bleep</div>
</div>