YII2 add horizontal scrollbar in gridview
I have a database table with 32 columns and I successfully displayed them in the yii2 gridview. The problem is the 32 columns will not fit in the window. I want to add a horizontal scroll bar at the bottom. How can I do that?
Here is the screenshot.
Solution 1:
You just need to put a div around it and then set the overflow using CSS. You will need to set the height.
overflow: auto;
overflow-y: hidden;
Height:?