0

I want to make my first column in the table static. Here is my jsfiddle:

https://jsfiddle.net/q2ymc76r/12/

css code:

.table .headcol { position:absolute; }

Problem is that the first column overlaps with the second column. Any suggestion to prevent the overlapping. Thanks.

isherwood
  • 52,576
  • 15
  • 105
  • 143
user3334226
  • 141
  • 1
  • 4
  • 13

2 Answers2

0

In the following post, as you can read from the title, seems that the user had a similar problem

how-do-i-create-an-html-table-with-fixed-frozen-left-column-and-scrollable-body

It should cointain something close to the answer your are looking for

Community
  • 1
  • 1
user2548436
  • 895
  • 2
  • 15
  • 33
0

Just set fixed width to your fisrt column, just like this:

<th class="text-center headcol" width="15%">Date</th>
dimmat
  • 197
  • 1
  • 2
  • 10