Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 423
user403295 Avatar asked Dec 09 '10 03:12

user403295


2 Answers

Add px after 200.

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

Hope it saves somebody 10 seconds.

like image 77
yudong Avatar answered Nov 15 '22 17:11

yudong


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

$('#id').css('min-height','200');
like image 38
kobe Avatar answered Nov 15 '22 16:11

kobe