Weird spacing when using the DOM attribute
Weird spacing when using the DOM attribute
When I do the following below, I get weird spacing on the drop down and search bar. If I comment out the "dom": 'lfrtip' everything aligns correctly. Any ideas? I posted an imgur below.
``` $(document).ready(function() {
$('#customers').DataTable({
"dom": 'lfrtip',
"buttons": [
'copyHtml5',
'excelHtml5',
'pdfHtml5'
],
"lengthMenu": [ [15, 30, 50, -1], [15, 30, 50, "All"] ],
"pageLength": 15,
});
} );```
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Are you using Bootstrap styled DataTables? If so the default
domstring for Bootstrap is different. See thedomreference for the default string that you will want to modify.Allan
Thanks Allan. I need to RTFM better!