I have applied following CSS to my table.
thead, tbody
{
display: block;
}
tbody
{
height: 200px;
overflow-y: auto;
overflow-x: auto;
}
The objective is to make the thead
fixed, and keep tbody
scrolling. Before applying the above CSS, thead
and tbody
content was alligned properly. But after putting the CSS, the content is mis-aligned. Even tr
elements doesn't fill the entire space of their container. Can someone help me with this? Any help will be appreciated.