I am working on my first ever website and it seems that I've run into a problem. I've created a footer, however it does not stay at the bottom.The footer messes up everything else in the page and distorts my items. What should I add in order make my footer stick to the bottom with causing any trouble to the rest of my page?. Here is my code.
* {
margin: auto;
padding: auto;
box-sizing: border-box;
font-family: Century Gothic;
}
header {
height: 15%;
background-size: cover;
background-position: center;
background-color: #ebebeb;
border-bottom: 5px solid #A9A9A9;
position: relative;
}
html,
body {
font-size: .80em;
margin: 0%;
padding: 0%;
color: #696969;
height: 100%;
width: 100%;
}
.footer {
background: #bfbfbf;
color: #d3d3d3;
height: 300px;
position: relative;
}
s .footer .footer-content {
border: 1px solid red;
height: 400px;
}
.footer .footer-bottom {
background: #343a40;
color: #686868;
height: 50px;
width: 100%;
text-align: center;
position: absolute;
bottom: 0px;
left: 0px;
padding-top: 20px;
}
.footer-section-socials h1 {
margin-left: 6%;
margin-top: -1%;
font-weight: 50;
font-size: 150%;
color: black;
}
.logo-footer h1 {
padding: 1.5%;
margin-left: 3%;
font-family: Leckerli One;
color: black;
font-size: 3.1875rem;
}
.footer-about {
margin-left: 2%;
margin-right: 0%;
}
<footer class="footer">
<div class="footer-content">
<div class="footer-section-socials">
</div>
<div class="footer-section links">
</div>
<div class="footer-bottom">
© #.com | Designed by #
</div>
</div>
</footer>
Help in advance!