Hi there,
I managed to create a table with a fixed THEAD and a scrollable TBODY. Only problem is that the text of the TBODY is partly visible in the THEAD when scrolling.
Anybody a idea how to fix this?
To do so I created 2 classes, one for the container and one for the THEAD.
div.tableContainer {
clear: both;
border: 1px solid #963;
height: 100px;
overflow: auto;
width: 760px;
}
thead.fixedHeader tr {
position: relative
}
thead.fixedHeader th {
background: #ffffff;
padding: 4px 3px;
text-align: left
}
I managed to create a table with a fixed THEAD and a scrollable TBODY. Only problem is that the text of the TBODY is partly visible in the THEAD when scrolling.
Anybody a idea how to fix this?
To do so I created 2 classes, one for the container and one for the THEAD.
div.tableContainer {
clear: both;
border: 1px solid #963;
height: 100px;
overflow: auto;
width: 760px;
}
thead.fixedHeader tr {
position: relative
}
thead.fixedHeader th {
background: #ffffff;
padding: 4px 3px;
text-align: left
}