How can I keep the table header fixed while allowing the body to scroll without breaking the table layout? I've tried using the CSS below, but it results in the width of the header columns being different from the width of the body columns. Any suggestions on how to avoid this problem?
#tblLocations thead, tbody {
display: block;
}
#tblLocations tbody{
max-height: 290px;
overflow-y:scroll;
}