2
I have the following footer:
<footer class="page-footer font-small footer-fundo-cinza">
<div class="container">
<div class="row pt-3">
<div class="col-md-4">
...
</div>
</div>
</div>
</footer>
footer{
position: absolute;
width: 100%;
bottom: 0;
}
It works well when the page does not have scroll, but when it has scroll it is not at the end of scroll, it is at the end of the first page, example:
This is my angular structure:
<div>
<app-cabecalho></app-cabecalho>
</div>
<router-outlet (activate)="onActivate($event)"></router-outlet>
<app-rodape></app-rodape>
The app-rodape
is the footer
and in the router-outlet
the form of the image is shown.
The form component has the following structure:
<div class="container">
<div class="row justify-content-md-center">
<div class="col col-lg-8">
<div class="container">
<div class="row">
<div class="col-md-12">
<p class="divisor is-3"><span>preencha o formulário abaixo</span></p>
</div>
</div>
If I remove the property bottom: 0
the footer is positioned at the end of the document, but on the other screens where there is no scroll it does not remain at the end of the screen.
In this project the bootstrap is being used.
Ever tried to replace
position: absolute;
forposition: fixed;
to see if it fits you?– hugocsl
Yes, but I don’t want the footer to be fixed, I hope it appears only at the end of the scroll
– veroneseComS