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

177
Views
How to know the height of the div when its overflow is hidden

I have a div, which have overflow hidden. Now want to display a arrow , up and down , up when we have overflow up and down arrow when we have overflow down.

And no arrows if there is no overflow in the div.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can check if the scrollHeight property is greater than the element's clientHeight. https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight

if (el.scrollHeight > el.clientHeight) {
    // do something
}
about 4 years ago · Juan Pablo Isaza Report
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!