Zaloguj | Zarejestruj | FAQ
Anonymous

Html table fixed headers

+ Odpowiedz

Posty: 4 Strona 1 z 1


Html table fixed headers

przez suvis10@hotmail.com » Pn sie 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 użytkownika

suvis10@hotmail.com

  • Posty: 1
  • Dołączył(a): Pn sie 25, 2014 3:45 pm

Re: Html table fixed headers

przez XainPro » So wrz 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 użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm

Re: Html table fixed headers

przez Farhin Qureshi » Pt sty 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 użytkownika

Farhin Qureshi

  • Posty: 45
  • Dołączył(a): Wt sty 03, 2017 11:33 am
--
Farhin Qureshi
.NET Developer
http://www.ifourtechnolab.com

Re: Html table fixed headers

przez frickarolos » Pt sie 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 użytkownika

frickarolos

  • Posty: 2
  • Dołączył(a): Pt sie 25, 2017 10:43 am


+ Odpowiedz

Strona 1 z 1