moving the position of the table on the webpage
moving the position of the table on the webpage
Hi
I'd like to move a datatable to the right of another jquery object (a dynatree tree).
When I set the css attributes left and top, the table contents move to the new position, but the other elements, such as search box, header, pagination etc, stay where they are.
i.e.
// css stuff
#mytable
{
left: 300px;
top: 10px;
}
// then later, table init
$('#mytable').dataTable({
// blah blah
});
Any idea how I can get the whole lot to move to the new position?
Thanks
Liam
I'd like to move a datatable to the right of another jquery object (a dynatree tree).
When I set the css attributes left and top, the table contents move to the new position, but the other elements, such as search box, header, pagination etc, stay where they are.
i.e.
// css stuff
#mytable
{
left: 300px;
top: 10px;
}
// then later, table init
$('#mytable').dataTable({
// blah blah
});
Any idea how I can get the whole lot to move to the new position?
Thanks
Liam
This discussion has been closed.
Replies
I believe this might help you out:
http://www.datatables.net/release-datatables/examples/basic_init/dom.html
Allan
Great, when I used #mytable_wrapper it worked perfectly.
Many thanks
Liam