I have a table that's getting too big for its boots. It has tons of columns, 15 of which are very repetitious data, kinda like this.......
data | more data | col 1 | col 2 | col 3 | col 4 | ............
stuff | more stuff | data 1| data 2| data 3| data 4 | ...........
so what I'd like to do is have the 'col 1, col 2' etc data available as a kind of like a menu dropdown, where you just click or hover over an icon on each row and it unhides/shows the data.
So I'd go from having 15 columns and n rows of this stuff, to a user hovering over an icon in a particular row, and seeing 2 columns with 15 (or fewer) rows. Like an accordion, but on top of the elements below, not shifting them down.
I'm not sure of the best way to accomplish this. I want it to look like a menu dropdown in a nav bar, but don't know if it's better to create a 'hidden' table for each row somehow. Is it better trying to do this in pure css, or javascript? I don't want to spend days on it, I was hoping somebody who knows better than me can give me some tips.
Thanks.
data | more data | col 1 | col 2 | col 3 | col 4 | ............
stuff | more stuff | data 1| data 2| data 3| data 4 | ...........
so what I'd like to do is have the 'col 1, col 2' etc data available as a kind of like a menu dropdown, where you just click or hover over an icon on each row and it unhides/shows the data.
So I'd go from having 15 columns and n rows of this stuff, to a user hovering over an icon in a particular row, and seeing 2 columns with 15 (or fewer) rows. Like an accordion, but on top of the elements below, not shifting them down.
I'm not sure of the best way to accomplish this. I want it to look like a menu dropdown in a nav bar, but don't know if it's better to create a 'hidden' table for each row somehow. Is it better trying to do this in pure css, or javascript? I don't want to spend days on it, I was hoping somebody who knows better than me can give me some tips.
Thanks.



![[Image: vp6iypF.gif]](https://i.imgur.com/vp6iypF.gif)