change bootstrap 5 margin class in search input?

change bootstrap 5 margin class in search input?

medarobmedarob Posts: 27Questions: 10Answers: 0

Is it possible to change the Bootstrap 5 **mt-*** class above the search input?

The standard class is

 <div class="row mt-2 justify-content-between">

I would like to change it to

 <div class="row mt-3 justify-content-between">

It's a similar issue here: https://datatables.net/forums/discussion/80038/extra-margin-above-below-table-layout-with-bootstrap-5

Answers

  • allanallan Posts: 64,920Questions: 1Answers: 10,752 Site admin

    Add:

    DataTable.ext.classes.layout.row = 'row mt-3 justify-content-between';
    

    after you've loaded the DataTables / Bootstrap 5 integration, but before you initialise the table.

    This is the relevant line in the code.

    Allan

Sign In or Register to comment.