The search box is not aligned

The search box is not aligned

elzembilgielzembilgi Posts: 3Questions: 2Answers: 0
edited May 2017 in Free community support

Everyone hello search box is not fully aligned in the mobile app as seen in the picture

This question has an accepted answers - jump to answer

Answers

  • bindridbindrid Posts: 730Questions: 0Answers: 119

    that's cause your table is to narrow. You might need to rearrange it so that the buttons and the search box are not on the same line.

    Here is a possibility that will move the search box under the buttons:

    $("#example").Datatable({
        dom: '<"ButtonStuff"B><"FilterStuff"f>t'
    })
    

    then add these classes to override datatable classes

    <style>
        .FilterStuff>div{float:none;}
        .dataTables_wrapper .FilterStuff .dataTables_filter {float:left}
    </style>
    
  • pratsprats Posts: 45Questions: 21Answers: 0

    If it's not responsive then please try
    https://datatables.net/extensions/responsive/ might that help you to hit the goal.

  • allanallan Posts: 63,889Questions: 1Answers: 10,530 Site admin
    Answer ✓

    @elzembilgi - What's the styling library you are using in your screenshot?

    Allan

  • elzembilgielzembilgi Posts: 3Questions: 2Answers: 0

    Thanks solved the problem

This discussion has been closed.