Align searchpanes and increase width of searchpane

Align searchpanes and increase width of searchpane

PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1
edited July 2020 in Free community support

Hi, Is there any way where i could make the searchpane at the center?
I have attached an image of my currently looking searchpane

Is it possible to have something like this?

Help would be appreciated. Thanks.

This question has an accepted answers - jump to answer

Answers

  • PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1

    Currently i am using these files

    <link href=" https://cdn.datatables.net/searchpanes/1.0.1/css/searchPanes.dataTables.min.css" rel="stylesheet" />

    <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
    <script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>  
    <script src="https://nightly.datatables.net/searchpanes/js/dataTables.searchPanes.js"></script>
    <script src="https://cdn.datatables.net/select/1.3.1/js/dataTables.select.min.js"></script> 
    
  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @PareshKumar ,

    Just add some custom css to the SearchPanes container.

    div.dtsp-searchPanes {
       justify-content: space-evenly !important;
    }
    

    Take a look at this example.

    Thanks,
    Sandy

  • PareshKumarPareshKumar Posts: 31Questions: 14Answers: 1

    This helps. Thanks @sandy :smile:

This discussion has been closed.