I have some problems with sticking my footer to the bottom of the page. At the moment when I preview it in Internet Explorer, it is centered under the rest of the content, but not at the bottom. When I want to preview it in Chrome, it keeps standing next to some other content. Could someone explain to me why and how to fix this? Below, I've included some code for reference:
HTML:
<footer class="mainFooter">
<p>Copyright © <a href="https://www.google.nl">www.baica.nl </a></p>
</footer>
CSS:
.mainFooter{
display:block;
width:100%;
height:50%;
margin:20% auto;
color:yellow;
text-align: center;
}