I have an HTML table with very long descriptions in the first column, the text inside the first column must be inline, so couldn’t split it into multiple lines. Does anyone know how to implement a table with only the first column able to scroll horizontally?
2
Answers
I would create two tables next to each other and style them like there are one. The first table on the left you make scrollable, e.g. the first column. And the other table not. Technical it are two tables but it will look as one.
As you know the width you want the first column to be (whether e.g. 150px or nnvw etc) you can force the first cell of the first row to scroll on overflow, having told it its max width is to be 150px (etc).