.dataTables_wrapper { width: min-content; margin-right: auto; } .ui-button { position: relative; font-size: 0; width: 23px; height: 23px; } .dataTables_wrapper .dataTables_filter { float: right; text-align: right; margin-bottom:2% } .dataTables_wrapper .dataTables_length { float: left; margin-right:2%; margin-top:1.5%; } .dataTables_wrapper .dataTables_paginate { float: right; } .dataTables_wrapper .dataTables_info { clear: both; } /* If the buttons extension is enabled */ .dataTables_wrapper .dt-buttons { float: left; margin-right: 10px; /* Or any desired space between buttons and search */ margin-top:2%; }