Make Table width 100%

Make Table width 100%

PloetziPloetzi Posts: 2Questions: 0Answers: 0
edited March 2010 in Bug reports
Hello,
i have tried to make the table width 100% with the following code, but it is not working:
[code]
$('#tabl').dataTable({ "bJQueryUI": true,"bAutoWidth":false, "bSort": false, "sPaginationType": "full_numbers"});

$("#tabl_wrapper").css("width","100%");
$("#tabl").css("width","100%");[/code]

Replies

  • allanallan Posts: 63,491Questions: 1Answers: 10,470 Site admin
    Try setting the width before you initialise the table. DataTables should be smart enough to see that the table has a width (if bAutoWidth is enabled) and just match that width.

    Allan
This discussion has been closed.