2
I have a flexbox page, but one of the items I need to stay fixed at the bottom of the page and have the same width as the other items, but it exceeds the standard width.
html, body {width: 100%;height: 100%}
.pagina {display: flex;flex-direction: column;background: #ccc;width: 80%;height: 100%;margin: 0 auto;position: relative}
.bloco1 {background: green}
.bloco2 {background: pink;position: fixed;bottom: 0;width: 100%}
<div class="pagina">
<div class="bloco1">Bloco 1</div>
<div class="bloco2">Bloco 2 - Esse é fixo no final da página</div>
</div>
You need the element to be at the bottom of the page all the time, even if you have a lot of content at scroll time that element should remain in the same place without scrolling with the page?
– hugocsl