2
I have a dynamic table, and I wanted head
of it stayed fixed in hers while I give scroll in the table, when reaching the end of the table, the head "goes away" and so I go to the next table.
All this without the table having td
and th
with width
fixed, and keeping the columns aligned.
I’ve already researched the plugins available in Jquery and some ways using only CSS. However, plugins have the problem of limiting only to thead
, i would like to tbm to keep a page header fixed, above thead tbm fixed. That solution (comment), satisfies the part of thead
, but it should also slide horizontally, because the table has enough columns.
What have you been trying for? Here’s an example: https://jsfiddle.net/dPixie/byB9d/3/
– BrTkCa
I’ve researched the plugins available in Jquery and some ways using CSS only.
– Lucas Stern
The plugins have the problem of limiting only to thead, I would like tbm to keep a fixed page header above the fixed tbm thead. This solution that you passed satisfies the thead part, but it should tbm slide horizontally, because the table has enough columns
– Lucas Stern
Enter the code.
– Taisbevalle
Hello @Lucas Stern, I did a quick search on Stackoverflow and found this post that seems to be exactly your question: http://stackoverflow.com/questions/4709390/table-header-to-stay-fixed-at-the-top-when-user-scrolls-it-out-of-view-with-jque I’m new to Stackoverflow in English, but if you need me, I can translate the answer for you, but it looks pretty simple using HTML, CSS and javascript. Anything, just call! Abs!
– Fillipe Silva
Have you tried using overflow(-x) in the horizontal scroll section? If the container has overflow and its contents are wider, it automatically creates a scroll.
– Rafael Cavalcante