Search code examples
jqueryheightdatatables

jquery datatables change default min-height


I am using datatables. ( http://datatables.net/ ) I have created a table. There is a height problem I am struggling to change. I checked the table size with firebug. The table height is set 302px by default. I could not find how to change.I tried to change css unsuccessfully. I appreciate, if anyone helps.

from firebug:

.dataTables_wrapper {
    clear: both;
    min-height: 302px;
    position: relative;
}

Thanks in advance.. Ozlem


Solution

  • // you can set the any css property through .css like below

    $('#id').css('min-height','200');