The problem below can be seen here – https://play.tailwindcss.com/D4nJ2xHpgp
I’ve got 7 columns for each day of the week. This currently half works, I want all columns to be the height of the screen, but the content of all columns scrollable (at the same time – not independently).
In the code example how it scrolls is correct, but the content goes beyond the borders. Any idea what I’ve done wrong?
2
Answers
To fix the problem you are facing u first need set a max height on container. After doing that u set the child element to take up full height. This causes the child content to take up whole space and overflow from parent making this scrollable. Since the child’s height is full, it’s border will be at bottom of scroll and its content won’t overflow from the border. Hope this helps!
Overflow scrolling with flex columns in a flex row is tricky. Not saying it can’t be done but in your case it is easier to put it all in a wrapper that scrolls:
EG:
https://play.tailwindcss.com/nTwa6MiAe9