How to change Padding and Info color

How to change Padding and Info color

ingezoneingezone Posts: 20Questions: 8Answers: 0
edited October 3 in DataTables 2

Hi Allan,

How can I change the padding and color of the text using bootstrap 5.

I tried the following codes, but they don't work.

    /* change font in bottom */
    div.dataTables_info {
        font-family: 'courier';
        padding: 3px;
        color: white !important;    
    }

Regards!

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    If you right click and select "Inspect" on the element, you would see that it has a class of dt-info.

    The class name you are currently using in the CSS is the name used by DataTables v1. In v2 they were updated to be more consistent.

    Allan

Sign In or Register to comment.