Column Size
Column Size
![plw](https://secure.gravatar.com/avatar/709fdd44e6aee8e08fe24dbf8bde6b72/?default=https%3A%2F%2Fvanillicon.com%2F709fdd44e6aee8e08fe24dbf8bde6b72_200.png&rating=g&size=120)
$(document).ready(function () {
$("#DTable").dataTable({
"pageLength": 30,
autoWidth: false,
columnDefs: [
{ type: 'natural-nohtml', targets: '0' },
{ width: '200px', targets: '3'}
],
"lengthMenu": [ 10, 25, 30, 50, 75, 100 ],
"bFilter": false,
"aaSorting": [[ 2, 'asc' ]],
"aoColumns": [
{ "bSortable": false },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true },
{ "bSortable": true }
]
});
});
I have the above. How do I make the First and last columns smaller please, Adding { width: '20px', targets: '0'} , before { width: '200px', targets: '3'} doesnt seem to do anything. Thanks
Answers
It is ok - I just needed to set the width in the <td> for the headers of the columns - solved - thanks