Tell me how to make a table, what would the header always be seen when scrolling?
I use bootstrap , jQuery / angularjs
Add position: fixed; to the desired element during scrolling. For this solution, you need jQuery.
var win = $(window); var element = $('#someId'); //идентификатор элемента, который нужно сделать фиксированным var height = 200; //лимит высоты, поиграйтесь со значением, пока не добъетесь подходящего вам win.scroll(function(){ if(win.scrollTop() >= height) { element.addClass('fixed'); } else { element.removeClass('fixed'); } }); and add to css
.fixed { position: fixed; } Source: https://ru.stackoverflow.com/questions/432351/
All Articles
<table>a regular<table>or a million<div>'s (as libraries like to create beauty like to do)? - Regent