But the CSS above is affecting my dataview tables it occupies more space even if it only has five lines
So I thought what if my multiple long tables are foldable like the headers do, so I can remove the vertical overflow maybe it can help, but I don’t know how. I am using a minimal theme also and that’s why
I’m not sure I understand how a table would fold, but for your existing snippet you could try replacing “height” with “max-height” to prevent it from using more space than it needs.
In your snippet, remove all of those max-height lines and replace height: 500px with max-height: 500px. Or did you already try that and what you have now is further experiments?
if pressing collapse button does not do anything then I have no idea why your callout is un-collapsable. callout is a built-in feature it should work pretty well.
I see you found a solution, but FYI: using height: 500 and max-height: 500 together has the exact same effect as just setting the height — you will always get 500. You have to get rid of the height for the max-height to do what you want here.