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
  • 58,414
  • 16
  • 114
  • 157
user3334226
  • 151
  • 1
  • 5
  • 15

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
  • 915
  • 2
  • 16
  • 35
0

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

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