Scrollable area

How can i fix this layout? I have a global layout with grid areas: header, sidebar and main area. Inside my main area, i need a scrollable area that streches automatically without affecting the global layout Here is the source code https://codesandbox.io/p/github/lucaskfp/react-dnd-kanban/
No description
No description
3 Replies
Mannix
Mannix2d ago
overflow: auto on main and overflow-y-auto on the scrollable area ?
Lucas Kennedy
Lucas Kennedy2d ago
works perfectly, thank you what should i study to understand this behavior?
ἔρως
ἔρως2d ago
you just need that the content that's inside the element is taller than the space you give it and when that content spills out, it's called "overflow" so, you can set the overflow property (or the -x and -y variants) to control what will happen
Want results from more Discord servers?
Add your server