Anmelden | Registrieren | FAQ
Anonymous

Html table fixed headers

+ Antwort erstellen

4 Beiträge Seite 1 von 1


Html table fixed headers

von suvis10@hotmail.com » Mo Aug 25, 2014 3:50 pm

HI All

I have created a large html dynamic table using jquery .
Now my query is here , How to make a fixed html table header while scrolling .

can any one please hepl me how to solve ??
Benutzeravatar

suvis10@hotmail.com

  • Beiträge: 1
  • Registriert: Mo Aug 25, 2014 3:45 pm

Re: Html table fixed headers

von XainPro » Sa Sep 20, 2014 9:26 am

there are lot's of methods to do that would you like to share your code ?

read the thead maybe this would solve your problem do it like this

<table>
<thead>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Sum</td>
<td>$180</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</tbody>
Benutzeravatar

XainPro

  • Beiträge: 3933
  • Registriert: Fr Feb 17, 2012 8:10 pm

Re: Html table fixed headers

von Farhin Qureshi » Fr Jan 20, 2017 11:52 am

Hi,
You can use jQuery.floatThead (demos-http://mkoryak.github.io/floatThead/) which is very usefull for floating header, it can work with DataTables too, and can even work inside an overflow: auto container.
Benutzeravatar

Farhin Qureshi

  • Beiträge: 45
  • Registriert: Di Jan 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com

Re: Html table fixed headers

von frickarolos » Fr Aug 25, 2017 11:04 am

I would advise you to use DIV tables instead of the classic table tags. Here you can generate and style them easily: http://divtable.com/table-styler/
Benutzeravatar

frickarolos

  • Beiträge: 2
  • Registriert: Fr Aug 25, 2017 10:43 am


+ Antwort erstellen

Seite 1 von 1