I'm struggling to get all the elements to align in a single row. I've tried using display: inline-block
, but it's not working as expected. I'm working with DataTables
and I want the button images to be aligned with the page number box.
https://i.stack.imgur.com/JthM9.jpg
CSS
.dataTables_paginate input {
width: 8%;
height: 8%;
padding-bottom: 0.2px;
display: inline-block;
font: normal 11px Verdana, Arial, Helvetica, sans-serif;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
box-sizing: border-box;
display: inline-block;
min-width: 1.5em;
padding: 0.5em 1em;
margin-left: 2px;
text-align: center;
text-decoration: none !important;
cursor: pointer;
*cursor: hand;
color: #333 !important;
border: 1px solid transparent;
border-radius: 2px;
}
JQuery Code
var table = $('#esignTable').DataTable({"sDom": '<"top"flp>rt<"bottom"i><"clear">',
pagingType: 'input',
pageLength: 5,
language: {
"sEmptyTable": "",
oPaginate: {
"sNext": '<img src="../images/integration/SlowRight.jpg">',
"sPrevious": '<img src="../images/integration/SlowLeft.jpg">',
"sFirst": '<img src="../images/integration/FastLeft.jpg">',
"sLast": '<img src="../images/integration/FastRight.jpg">'
}
}
});