Overflow Behavior in CSS

I'm building an app for running tournament brackets which, by their nature are often large hard to break up so my app requires a decent amount of overflow handling. I am struggling to understand how to get overflow to work in many cases though, particularly when padding is involved. For instance here is a bit of my UI for adding players (see image) The parent clearly has padding on bottom, but the scroll refuses to take this into account. I've seen this change based on seemingly random things like the flex-direction. Is there a good guide or some rules that explains all this?
3 Replies
Leonidas
Leonidas3y ago
Sara Cope
CSS-Tricks
overflow | CSS-Tricks
The overflow property controls what happens to content that breaks outside of its bounds: imagine a div in which you've explicitly set to be 200px wide, but
Tom
TomOP3y ago
thank you very much.... but i dont see anything here about how it interacts with display flex or display grid or padding at ;east not in the way im seeing
Leonidas
Leonidas3y ago
Flex and grid are layout systems, overflow does not affect them really Except for the obvious part that you control wether the overflow is hidden, visible or scrollable
Want results from more Discord servers?
Add your server