Static Table Header, absolute THEAD
Left column | Center Column | Right Column |
1 | second | third |
2 | second | third |
first | second | third |
first | second | third |
first | second | third |
first | second | third |
first | second | third |
first | second | third |
first | second | third |
first | second | third |
<style>
#wrapper{
background:tomato;
padding-top:24px;
float:left;
position:relative;
}
#table_wrapper{overflow:auto;height:100px;float:left;}
table{border-collapse:collapse;}
td,th{border:1px solid green;width:120px;}
thead{
position:absolute;
z-index:2;
background:yellow;
margin-top:-23px;
float:left;
height:24px;
}
</style>
IE6
short crolling and refreshing the FF3