Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

230
Visualizações
Bootstrap resising window and keeping table fullscreen

i have a webpage that shows a table and a footer. I use bootstrap to make sure that the footer is always shown but the table resizes to the remaining height of the screen.

The resising works great as long as the window is larger than the table, but when the window gets too small i want to show a scrollbar at my table but still show my footer.

video of the issue : https://www.youtube.com/watch?v=p3TPqvivW_8 my code :

<div>
    <div className="container-fluid aaa">
        <div className="row justify-content-center min-vh-100">
            <div>
                <div className="d-flex flex-column h-100">
                    <div className="row justify-content-center bg-blue flex-grow-1 flex-nowrap">
                        <table className="table table-bordered table-dark table-hover">
                            <thead>
                                <tr>
                                    <th scope="col">Name</th>
                                    <th scope="col">IP</th>
                                </tr>
                            </thead>
                            <tbody>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                                <Device type="SRG-X120" ip="192.168.48.1"/>
                            </tbody>
                        </table>
                    </div>
                    <div className="row justify-content-center bg-purple">
                        <div className="text-white">
                            <Footer />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Create a custom class:

.scrollable{
    overflow-y: auto;
}

and add it to your div container wrapping the table:

<div className="row scrollable justify-content-center bg-blue flex-grow-1 flex-nowrap">
  <table>...</table>
</div>
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda