This is my CSS code
footer {
position: relative;
height: 50px;
width: 100%;
background-color: white;
}
p.copyright {
position:absolute;
width:100%;
line-height:40px;
color:red;
vertical-align:bottom;
text-align:center;
bottom:0;
}
This is my aspx HTML code
<footer>
<p class="copyright">
Copyright 2017 Anime Toys</p>
</footer>
I'm trying to keep footers at the bottom of all web pages. The problem that I'm facing is that some web pages contains small amount of content, the footer can sometimes sit halfway up the page leaving a blank space underneath.
How do I solve this issue? Can someone fix my code?