i need help with the position of elements in DOM
i need help with the position of elements in DOM
![ASHKARdatatables](https://secure.gravatar.com/avatar/0735e0097d9b44cbd338ec3c58693c67/?default=https%3A%2F%2Fvanillicon.com%2F0735e0097d9b44cbd338ec3c58693c67_200.png&rating=g&size=120)
Hi every one,
i need help with the position of elements
this is the image of my datatable right now
and i want to change it to be like
and this is the DOM code
dom: '<"dt-top-container"<l><"dt-center-in-div"B><f>r>t<ip>',
This question has accepted answers - jump to:
Answers
If you can link to a page showing the issue, that would be useful. It looks like you've got some custom CSS already, since if I use your
dom
string I get a slightly different layout: https://live.datatables.net/bifumixo/1/edit .Allan
unfortunately, my code is not clean right now and it will take time to clean it![:neutral: :neutral:](https://datatables.net/forums/resources/emoji/neutral.png)
this is the css
For this you don't need to clean it. Just update Allan's example with your CSS. This will give us the test case needed to see what you have. Made a couple changes:
https://live.datatables.net/qabotica/1/edit
You can search forums like Stack Overflow for options to align three
div
elements horizontally. Thats what I did and used one of the solutions provided.Also I swapped
l
andf
in yourdom
option to display search to the left and length change to the right.Kevin
hi Allan
i want to center buttons
Did you look at my example?
https://live.datatables.net/qabotica/4
I updated it to show the copy and excel buttons you first noted.
Kevin
Perfect Kevin![:blush: :blush:](https://datatables.net/forums/resources/emoji/blush.png)