I have a fluid table that now needs a fixed thead. The issue being when you make the thead fixed the th-s don't respect the width of the tbody's td-s. The sizing of the columns are all handled with BootStrap. I have read quite a bit on this subject and seen two solutions. For argument's sake both will not work for me.
Lock down widths on the table, th, and tds. So no responsive widths - hence horizontal scrolling.
Use jquery to find the
window width
and return theheight
to the table. Then do a inner table scroll with a locked header. (example of found solution http://www.bootply.com/JnOYtO9xzn#)
What I would like to try is find the width
on all the td
and pass those width
to the corresponding th
(if I need to apply classes like th1, td1 so be it). Essentially I am trying to binding the td widths to the th. Also, on window width
change update.
Table example: http://jsfiddle.net/u2xZU/165/ or https://jsfiddle.net/5hozvm5d/4/