I'm trying to make a table scrollable with a fixed header with hover effect. I used this question to set my css file. I always got misaligned columns:
here is my Plnker demo:
Plunker demo
any help please ?
I'm trying to make a table scrollable with a fixed header with hover effect. I used this question to set my css file. I always got misaligned columns:
here is my Plnker demo:
Plunker demo
any help please ?
Your problem is that the display: block
rule breaks table alignment.
Where you have:
.hoverTable tbody, .hoverTable thead { display: block; width: calc(100% - 17px); }
Remove that rule:
.hoverTable tbody, .hoverTable thead { width: calc(100% - 17px); }
You also have 9 th elements and 10 td elements. Place an empty th
in at the end of the thead
to equalize them.