Search code examples
jquerydatatable

change font family in datatable


I'm a beginner in java, How can I change the font family of all texts (header, footer and body) in a datatable?

I found nothing about font family in datatables.jqueryui.css


Solution

  • Thanks to @charlietfl,

    I use inspect element in the browser and found out the solution is adding font-family and font-size to .dataTables_wrapper in dataTables.jqueryui.css

    .dataTables_wrapper {
        font-family: tahoma;
        font-size: 13px;
        direction: rtl;
        position: relative;
        clear: both;
        *zoom: 1;
        zoom: 1;
    }