About 119,000 results
Open links in new tab
  1. HTML DOM Style overflow Property - W3Schools

    The overflow property sets or returns what to do with content that renders outside the element box. Tip: If you want to hide the scrollbars of the entire document, use the overflow property on the body or the …

  2. javascript - Check if an element's content is overflowing? - Stack Overflow

    Here is a fiddle for determining whether an element has been overflowed using a wrapper div with overflow:hidden and JQuery height () to measure the difference between the wrapper and an inner …

  3. How to Check if an HTML Element’s Content Overflows Using JavaScript ...

    Nov 6, 2025 · But how do you reliably check if an element’s content overflows, even when scrollbars are hidden (e.g., `overflow: hidden`) or not present? This guide will walk you through the technical …

  4. Overflowing content - Learn web development | MDN

    Dec 19, 2025 · When you set overflow: scroll on overflowing content, browsers with visible scrollbars will always display them—even if there is not enough content to overflow.

  5. How to determine the content of HTML elements overflow or not

    Jan 12, 2024 · If the 'overflow' property is set to "hidden" or "auto," it means the content may overflow. Additionally, you can inspect the element's dimensions using the `clientWidth`, `clientHeight`, …

  6. Using JS to detect HTML Element Overflow – Blog -> CyberFinch …

    Jun 19, 2024 · Yes, it is possible to use JavaScript to detect if an HTML element is currently overflowing. To achieve this, you can compare the element’s clientWidth or clientHeight against its scrollWidth or …

  7. javascript - Determine if an HTML element's content ... - Stack Overflow

    Aug 26, 2015 · Can I use JavaScript to check (irrespective of scrollbars) if an HTML element has overflowed its content? For example, a long div with small, fixed size, the overflow property set to …

  8. Top 2 Methods to Check If a Div Has Overflowing Elements

    Nov 23, 2024 · Discover how to efficiently determine if a div with a fixed height has overflowing elements using jQuery and native JavaScript methods.

  9. How to Set Overflow Y in JavaScript - hatchjs.com

    Learn how to set overflow y in JavaScript with this easy-to-follow guide. You'll find step-by-step instructions and code examples, so you can get started right away.

  10. overflow - CSS | MDN

    Dec 5, 2025 · Overflow options include hiding overflow content, enabling scroll bars to view overflow content or displaying the content flowing out of an element box into the surrounding area, and …