Datatable center headers

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

The code below does not work:

            '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 (

Thank u in advance !


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

1 Like