I have a table that becomes scrollable if the screen size is too small to comfortably view the whole table (table-responsive
). However, there is one column in my table that I want to stay fixed. It is always the same column that needs to be fixed (the second column - for example: "Student"), but the width of the 'Student' cells in each table may vary. I have multiple tables on the site, some of which are hidden and only one is shown at a time. Is it possible to make this fixed column work across all tables?
Example (Ensure window is less than 800px wide to see scrolling):
jsFiddle: http://jsfiddle.net/8nXvf/