1

I'm trying to fixed the header in the table, such that the content can scroll within a fixed height. I have achieved some part of it. but still struggling to make it right. Can any one have a look and help me fixing this? JsFiddle link is given below thanks. Css is shown below

https://jsfiddle.net/gggxca3u/

#dataSink td {
   border: 0px;
 }
  #dataSink {
    table-layout:fixed;
    border-collapse: collapse;
  }

 #dataSink tr {
   border: 0px;
 }

 #dataSink tbody {
   display: block;
   overflow-y: auto;
   height: 220px;
 }

 #datasink thead tr {
   display: block;
   position: relative;
 } 
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
A.P.S
  • 1,124
  • 4
  • 17
  • 36
  • Possible duplicate of [HTML table with fixed headers?](http://stackoverflow.com/questions/673153/html-table-with-fixed-headers) – m.spyratos Apr 27 '17 at 13:40

0 Answers0