Alot of Space Below the Table?

Alot of Space Below the Table?

RavenRaven Posts: 28Questions: 0Answers: 0
edited February 2012 in General
[code]



<!--This is coding for the repeater -->

jQuery(function () {
$('#tblSearchNormalFine').dataTable({ "oLanguage": { "sSearch": "Search:" },
"iDisplayLength": 10,
"aaSorting": [[0, "asc"]],
"bAutoWidth": false,
"bStateSave": true
});
});

[/code]

The best way to explain would be, See the as a container. if i have one item then my container stays a fixed width,
e.g
|
| 1 item
|
|
|
|
|
___________________________________end of container

this is alot of space, i understand that the table stretches as more items come into play, but is there a way to reduce the space thats there if i only have very few items like 1,2 or 3 ?
Is this a styling issue or script? is it the table, or tbody?

thanks in advance

Replies

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    Is the stylesheet from DataTables 1.8.2-? Remove the min-height option in the CSS in demo_table.css for the wrapper.

    Allan
  • RavenRaven Posts: 28Questions: 0Answers: 0
    Yes thats correct, thank you allan. i got someone who keeps changing coding. Yes the min height was set to 304, which caused that space. i was thinking it had something to do when you select how many items you want to display, so it keeps room for 10 items. Thank you allan
This discussion has been closed.