In the process of creating a comparison table for products, I have designed a table with vertical rows. The header is positioned on the left side, with two or more product descriptions displayed in vertical rows within the table body. To accommodate a scenario where the user selects numerous products, I need the table to be horizontally scrollable.
Utilizing CSS from this specific answer, I successfully transformed the table into a vertical layout. However, I am facing difficulties in implementing a horizontal scrollbar within the tbody
if the table exceeds the predetermined width. I am searching for a solution akin to this question but tailored to my transposed table.
Currently, this is what I have: JSFiddle. When I limit the table width to 200px, this is the result:
https://i.sstatic.net/4qOGB.png https://i.sstatic.net/Z2t9m.png