Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

259
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda