0

This is my first post, so I hope I am asking the right way. I have a page with a large table. When I scroll down I would like the top row to stay fixed. I have tried writing the code and put the result up here. The problem is that for some reason the width is not the same as the width of the rest of the table. And Also it is transparent so you can see the text under it at the same time. The table looks fine on my other pages on that site where I have not tried to fix it, but I would like to make it easier for my viewers and would appreciate your help as I still consider myself a novice.

Just a student
  • 10,560
  • 2
  • 41
  • 69
lovemark
  • 1
  • 1
  • the width of what is not the same as the width of the rest of the table? I'd suggest to create a jsFiddle instead of giving a link to a site. Make sure you've made a http://stackoverflow.com/help/mcve . Best regards – YakovL Apr 23 '17 at 09:17
  • Possible duplicate of [Fixed header table with horizontal scrollbar and vertical scrollbar on](http://stackoverflow.com/questions/14977864/fixed-header-table-with-horizontal-scrollbar-and-vertical-scrollbar-on) – Carl Angelo Nievarez Apr 23 '17 at 09:36

1 Answers1

0

try fixing the table on top, in css with

position: fixed;

Bob
  • 49
  • 8