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

257
Visualizações
CSS & JS: Overflow-y not working on DOM EL if overflow-x already set

I've walked into an dilema: I told my body Element to not scroll the x-axies: overflow-x: hidden.

Now i set the overflow-y: hidden on the body , when something is clicked with JavaScript. Now it look's like this, when inspection via DevTools:

enter image description here

Everything looks great, but i still am able to scroll the body. BUT when I remove the overflow-x: hidden styles from the DevTools the Body won't scroll anymore to the y-Axies?

enter image description here

How ist that possible?

about 4 years ago · Juan Pablo Isaza
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