Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!