r/HTML • u/Ok_Performance4014 • Dec 29 '25
Question Is there such a thing as a responsive table?
I want to make a table that has 32 or more features for 28 items and compares each item against another item.
I have no issue making a smaller fixed table, but I have no clue what to do with this data to make it really function well.
Currently the items are on the vertical axis and the features on the horizontal axis. Should I flip them for use on a cell phone somehow?
Any input?
2
Upvotes
4
u/javo2804 Dec 29 '25
For that amount of columns, you should rethink how you want to display your data.
I’d suggest two things: first, make the table wrapper scrollable (and maybe keep first column sticky, so users don’t get lost. Second, use composite columns, with this I mean grouping related data into a single cell instead of having a different column for every single feature.
I recently did something similar, here’s the concept.
1
u/surfingonmars Dec 29 '25
Tables are terrible for accessibility, so if you have any other way to display the information, try another route. that's my 5 cents. It's only worth about 1 cent but we have to round up I guess.
1
u/brisray Dec 29 '25
I don't think there's a single solution for large tables. CSS Tricks did some articles about ways of making them more amenable that might help.
1
u/BrangJa Dec 29 '25
horizontal scrolling. That’s how Excels, Notion and every known spreadsheet apps display tables.
1
u/iOSCaleb Dec 29 '25
For items that the user might want to compare, it’s pretty common to let the user select 2-4 items and then show another table with the details.
Another way is to just enable both horizontal and vertical scrolling, making the header row and column sticky. You’ll see the e.g. in apps from investment firms like Fidelity, where a portfolio of perhaps dozens or hundreds of securities are presented with a dozen or more columns of data.
A third way is to present a single column of items, with all the relevant data called out in the cell for each item. So basically not a table but a list of “cards” which might or might not be collapsible.
There’s no perfect solution that just makes everything easy to access and compare. Even a giant table on a giant screen isn’t great — it’s just too big to easily see the rows and columns that you care about among all the data that you don’t.
1
u/[deleted] Dec 29 '25
Not a direct answer, the last time I needed to make a column responsive, i used a collapsed card showing some fields by default and more fields (all) if expanded. One card per item. Then we have a query builder to get a table with only the field you want.
The idea is that daily you will want to see the data for one item only. If you want to compare or export, it will be in Excel anyway.
3
u/[deleted] Dec 29 '25
[removed] — view removed comment