I have quite a large table that I use for scheduling in html, and I would like to freeze the left column.
My origional CSS looks like this:
table, th, td {
border: 1px solid black;
border-collapse: collapse
}
td {
min-width: 35px;
width: 35px;
text-align:center;
}
td.name{
min-width: 150px;
width: 150px;
text-align:left;
}
I adjusted it to look like this:
table, th, td {
border: 1px solid black;
border-collapse: collapse
}
td {
min-width: 35px;
width: 35px;
text-align:center;
}
td.name{
min-width: 150px;
width: 150px;
text-align:left;
Position:fixed;
}
With the hope that this would freeze the left column during scrolling. Instead the I get rows overlapping, and while it does freeze the scrolling text is visible behind the frozen rows.
Example: https://jsfiddle.net/780r86qL/
What can I do to fix these two issues?