Found the solution: I used dataTable jquery to do this.
First I set table-layout:fixed
for the table.
Then added following code in js:
$("#rates").dataTable({
"bPaginate": false,
"sScrollY": "250px",
"bAutoWidth": false,
"bScrollCollapse": true,
"sScrollX": "100%",
"sScrollXInner": "100%",
"bLengthChange": false,
"bFilter": false,
"sDom": '<"top">rt<"bottom"flp><"clear">',
"aoColumns": [
{ "bSortable": false, "sWidth" : "10%" },
{ "bSortable": true, "sWidth" : "30%" },
{ "bSortable": true, "sWidth" : "15%" },
{ "bSortable": true, "sWidth" : "20%" },
{ "bSortable": true, "sWidth" : "30%" }
],
}).fnAdjustColumnSizing( false );