Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
A | B | C |
---|---|---|
1, 0 | 2, 0 | 3, 0 |
1, 1 | 2, 1 | 3, 1 |
1, 2 | 2, 2 | 3, 2 |
1, 3 | 2, 3 | 3, 3 |
1, 4 | 2, 4 | 3, 4 |
1, 5 | 2, 5 | 3, 5 |
1, 6 | 2, 6 | 3, 6 |
1, 7 | 2, 7 | 3, 7 |
1, 8 | 2, 8 | 3, 8 |
1, 9 | 2, 9 | 3, 9 |
1, 10 | 2, 10 | 3, 10 |
1, 99 | 2, 99 | 3, 99 |
#table-wrapper {
position:relative;
}
#table-scroll {
height:150px;
overflow:auto;
margin-top:20px;
}
#table-wrapper table {
width:100%;
}
#table-wrapper table * {
background:yellow;
color:black;
}
#table-wrapper table thead th .text {
position:absolute;
top:-20px;
z-index:2;
height:20px;
width:35%;
border:1px solid red;
}