I have implemented a static footer on my website:
HTML
<div class="card fixedFooter">
<div class="card-body space-around">
<button
type="button"
class="buttonFooter"
routerLink="/myRouter"
>
<i class="fa fa-lock fa-lg"></i>
</button>
<button
type="button"
class="buttonFooter"
routerLink="myRouter"
>
<i class="fa fa-globe fa-lg"></i>
</button>
<button type="button" class="buttonFooter" routerLink="myRoute">
<i class="fa fa-plus fa-lg"></i>
</button>
<button
type="button"
class="buttonFooter"
routerLink="myRouter"
>
<i class="fa fa-home fa-lg"></i>
</button>
</div>
</div>
CSS
.fixedFooter {
background-color: white;
text-align: center;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
font-size: 1em;
}
.buttonFooter {
background-color: white;
color: grey;
display: inline-block;
border: none;
cursor: pointer;
}
However, the issue I am facing is that when I scroll, the footer seems to move along with the page, even though it's meant to stay in one place. Here is an image demonstrating this problem: