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
Mannix5mo ago
overflow: auto on main and overflow-y-auto on the scrollable area ?
Lucas Kennedy
Lucas KennedyOP5mo ago
works perfectly, thank you what should i study to understand this behavior?
ἔρως
ἔρως5mo 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

Did you find this page helpful?