I'm trying to figure out how I can align to the top and spaces between the information page number, search and pagination. Currently it looks like this...
This question has accepted answers - jump to:
It looks like you might be using Bootstrap 4, is that correct?
What does your dom look like. You can see an example using BS 4 here: https://datatables.net/reference/option/dom#Styling
dom
There could be many reasons for the layout issues. In order for us to help we would need to see what you have. Please provide a link to your page or a test case replicating the issue. https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Yes bootstrap4 I work on a page for you.
Ok I have a page for you to look at... live.datatables.net/huqaqopi/3/edit
I forgot to change "sticky" to fixed. live.datatables.net/fecenamu/1/edit
Hi @th3t1ck ,
Is this an issue still, or did you resolve it?
Cheers,
Colin
Still an issue
If you want a quick hack, then you could use:
div.dataTables_filter, div.dataTables_length { padding-top: 0.65em; }
However, a proper fix, would be to use Bootstrap's grid layout with vertical alignment since you are defining your own dom option.
Allan
Thank you Allan. Can you provide an example of setting the DOM elements using Bootstrap please?
This tutorial may help - seems to have a few good examples there.
Thank you Colin.
Answers
It looks like you might be using Bootstrap 4, is that correct?
What does your
domlook like. You can see an example using BS 4 here:https://datatables.net/reference/option/dom#Styling
There could be many reasons for the layout issues. In order for us to help we would need to see what you have. Please provide a link to your page or a test case replicating the issue.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Yes bootstrap4
I work on a page for you.
Ok I have a page for you to look at...
live.datatables.net/huqaqopi/3/edit
I forgot to change "sticky" to fixed.
live.datatables.net/fecenamu/1/edit
Hi @th3t1ck ,
Is this an issue still, or did you resolve it?
Cheers,
Colin
Still an issue
If you want a quick hack, then you could use:
However, a proper fix, would be to use Bootstrap's grid layout with vertical alignment since you are defining your own
domoption.Allan
Thank you Allan. Can you provide an example of setting the DOM elements using Bootstrap please?
Hi @th3t1ck ,
This tutorial may help - seems to have a few good examples there.
Cheers,
Colin
Thank you Colin.