CSS and HTML fixed table headers and footers with scrollable TBODY.

Strict & Quirks mode. No JS involved. Auto-resizeable table.

Cloned 3 identical tables allow to use same column layout calculations in all of them. Each table shows header, body and footer respectively and hides remaining header, tbody, footer in each respectively.

Scroll bar. Each table is surrounded by DIV for vertical scroll bar appearance. "tbodydiv" DIV defines vertical scrollable area size. Additional colun is added to each table to cover the scroll bar space.

Enjoy!

h0h1h2
footer 0
f1
f2 oo ooo ooooo
00 000 00000
01
02
10
11
12
20
21
22
30
31
32
40
41
42
50
51
52
60
61
62
70
71
72
80
81
82
90
91
92
h0
h1
h2
footer 0
f1
f2 oo ooo ooooo
00 000 00000
01
02
10
11
12
202122
303132
404142
505152
606162
707172
808182
909192
footer 0
f1
f2 oo ooo ooooo
h0
h1
h2
00 000 00000
01
02
10
11
12
20
21
22
30
31
32
40
41
42
50
51
52
60
61
62
70
71
72
80
81
82
90
91
92

Valid HTML 4.01 Strict

NOTE:

TESTED:
	PASSED: IE7, FF3, Safari 3.1.1, Chrome 1.0.154.43, Opera 9.60.
	FAILED:	IE8 Beta2 8.0.6001.18241

© Sasha Firsov, 2009