Connexion | Inscription | FAQ
Anonymous

Html table fixed headers

+ Publier une réponse

4 messages Page 1 sur 1


Html table fixed headers

par suvis10@hotmail.com » Lun Août 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 ??
Avatar de l’utilisateur

suvis10@hotmail.com

  • Messages: 1
  • Inscrit le: Lun Août 25, 2014 3:45 pm

Re: Html table fixed headers

par XainPro » Sam 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>
Avatar de l’utilisateur

XainPro

  • Messages: 3933
  • Inscrit le: Ven Fév 17, 2012 8:10 pm

Re: Html table fixed headers

par Farhin Qureshi » Ven 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.
Avatar de l’utilisateur

Farhin Qureshi

  • Messages: 45
  • Inscrit le: Mar Jan 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com

Re: Html table fixed headers

par frickarolos » Ven Août 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/
Avatar de l’utilisateur

frickarolos

  • Messages: 2
  • Inscrit le: Ven Août 25, 2017 10:43 am


+ Publier une réponse

Page 1 sur 1