So when I scroll, the table header is fixed but it aligns to the left instead of being centered - I am not sure where to center this. I have tried CSS and within the jquery with no success...
I have a full-width example working here... https://jsfiddle.net/vladi/vuoe35n7/
and now I wanted to change the width of the table to 660 pixels and center it.
I changed the css of the table from 98% to 660px and the margin from margin: 0 1% to margin: 0 auto
https://jsfiddle.net/rbla/m605k9ov
cant seem to get the cloned header to line up correctly?
table {
border-collapse:collapse;
/* width: 98%; */
/* margin: 0 1%; */
width: 660px;
margin: 0 auto;
}
Any ideas on how to center this fixed table header so it matches the orginal? I am wondering if it is within the jquery
}