All the examples I saw with table and fixed header are using css
tbody {
height: 120px;
overflow-y: auto;
}
This creates double vertical scrollbars. One is from the browser itself, the other one is from the table. If a page just has one table of width:100%, this double scroll bar is very ugly and not responsive. Is there another way to do this without setting the tbody height so that only the body rows are scrolled off the screen, the table header row is always visible and only one vertical scrollbar in the browser?
tableandresponsivein the same question.