What I’m trying to do
Hi, some of my dataview tables can be very long, and I would like to be able to limit them to a certain height and have a scroll-bar to explore all the data, rather than the table taking up a huge amount of vertical real-estate. Has anybody tried this/have ideas?
Thanks!
Things I have tried
I am not great with CSS, but have tried a few things, e.g.,
table {
display: block;
max-height: 400px;
overflow: auto;
}
this successfully limits the height of the table and adds a scroll-bar, but kinda messes with the column formatting. Ideally, I feel like I would like to be able to have “display: table;” but my limited understanding is that this doesn’t allow for max heights and scrollbars.
From a bit of searching, I gather one suggested solution in webdesign generally is to embed the table in a div which is then styled to have a max height and scrollbar etc, rather than applying this to the table directly… but then I’m not sure how to embed dataview tables in a div…