Place div beside the filtering div

Place div beside the filtering div

jordan123jordan123 Posts: 4Questions: 0Answers: 0
edited December 2011 in General
Hi.

So I want to place a div beside the dataTables_filter div. I want this to be right against the datatable as well. I can't figure out an (easy) way to do this.

Right now I am doing:

"sDom": '<"toolbar">frtip',
$("div.toolbar").html(strVar);

But this places the div above the datatable and it seems to be unable to go right against the table like the search does.

Any ideas?

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    It places the DIV above visually, but next to the filter in the DOM (have a look at it in Firebug / Inspector). So position it visually you need to use a little CSS, such as div.toolbar { float:left; width:20% } or something.

    Allan
  • jordan123jordan123 Posts: 4Questions: 0Answers: 0
    That works good! thanks. Way simpler than I thought.
This discussion has been closed.