Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Always show horizontal scroll in visible area of table

Tags:

html

css

I have a table where I would like the left hand column to be fixed when scrolling horizontally only.

I found a solution here which covers almost exactly what I am after as per this jsfiddle

The only downside is that to see the horizontal scroll you have to vertically scroll to the bottom of the table. Is there a way to get the horizontal scroll to appear immediately inside the visible scrollable area? I hope that makes some sort of sense!?

like image 683
mindparse Avatar asked Oct 16 '22 16:10

mindparse


1 Answers

You can use floating-scroll plugin. NPM, Demo

like image 184
piotros Avatar answered Nov 15 '22 05:11

piotros