Scrollable table widget with fixed header

M

Michael Schmitt

Mel said:
Scrollable table widget with fixed header

is there such thing ?

thanks,
Mel
no, but you can 'build' such widgets just by using <div> elements as
containers for tables and using CSS. No J(ava)Script required.

cu, Michael
 
T

Thomas 'PointedEars' Lahn

Michael said:
Mel said:
Scrollable table widget with fixed header

is there such thing ?
[...]

no, but you can 'build' such widgets just by using <div> elements as
containers for tables

No. The goal was a *fixed header*. To achieve that with `div' elements
you would need to have the `div' element as a direct descendant of the
`table' element which creates invalid HTML as `div' is not part of
`table''s content model.
and using CSS. No J(ava)Script required.

Correct:

<table>
<thead>
...
</thead>

<tfoot>
...
</tfoot>

<tbody style="height:50%; overflow:scroll">
...
</tbody>
</table>

Alas, this still waits for implementation in some widely used browsers.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top