Datatable center headers

Hi all ! I’m willing to center the headers of the datatable.

The code below does not work:

style_header={ 
            'textAlign': 'center', 
        },

Now I’ve found some solutions, but actually I still don’t know how to do that.

python - Align header in Dash DataTable - Stack Overflow

How to center align datatables header (newbedev.com)

Thank u in advance !

Hi @SUN

Try upgrading to the latest version of Dash (version 2.3.0) :slight_smile:

1 Like