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

148
Visualizações
How can I make my element take the full screen and disable the scrolling?

I want to make my children div take the remaining space of the screen and disable the scrolling option, because I'm using PanZoom, I want the children's div to be always 100& the screen

<div class="parent">
    <menu> ... </menu>
    <div class="children"> ​
        <panzoom></panzoom> //the image can change size, height etc.
    </div>
</div>

I tried to use

children  {
    height : 100%
}

But with PanZoom, the div is bigger and the scroll option apears.

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

0

I'm honestly not sure exactly what you mean, your question is a little unclear, but, here's a possible answer.

If you want to make an element truly full-screen, you shouldn't just set the height to 100%, you need to consider the user's screen, like so:

.element {
   height: 100vh;     // sets the height to the full screen view height
   width: 100vw;      // sets the width to the full screen view width
   overflow: hidden;  // hides scrolling
}
about 4 years ago · Juan Pablo Isaza Relatório

0

If you don't want the scrollbar to appear you can do

.children {
    overflow: hidden;
}
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