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

36
Visualizações
Focus div loading on scrollable content

Is it possible to center (in the middle of the screen) the svg and text loading container within a scrollable content? Sometimes the content cannot be scrolled. I can center it vertically but if the content is too long it doesn't center.

Html

 <div class="content">
 <div class="wrapper">
 <div class="table-overlay">
 <div class="table-overlay-container">
 <div class="">
 <!-- loading svg and span -->
 <svg></svg>
 <span>Loading...</span>
 </div>
 </div>
 </div>
 </div>
</div>

CSS/SCSS

 <style lang="scss" scoped>
.content {
 /* 72px - height of top navigation bar */
 min-height: calc(100vh - 72px);
 padding-bottom: 80px;
}

.wrapper {
 padding-top: 32px;
 padding-bottom: 32px;
 width: 100%;
 height: 100%;
}

.table-overlay {
 position: absolute;
 inset: 0;
 z-index: 1000;
 width: 100%;
 height: 100%;

 .table-overlay-container {
 display: flex;
 align-items: center;
 justify-content: center;
 flex-direction: column;
 height: 100%;
 // margin-right: 20px;
 background-color: rgba(255, 255, 255, 0.6);
 }

 & span {
 user-select: none;
 }
}
over 2 years ago · Carlos Garzón Colorado
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