Overflow
Control what happens when content too big either scroll/clip
visible
- Default. The overflow is not clipped. The content renders outside the element's boxhidden
- The overflow is clipped, and the rest of the content will be invisiblescroll
- The overflow is clippgit ed, and a scrollbar is added to see the rest of the contentauto
- Similar toscroll
, but it adds scrollbars only when necessary
Only happens if block display with height
The scrollbar actually takes up space in the div
Make sure container is overflow hidden so it constrains the inner divs, then you can add auto(scrollbar) to the child
Text-Overflow
Advanced
On mobile, you can run into weird bouncing issues with the window scrolling instead of the content
Check out: https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior
Last updated