CSS to center table is broken

Hello, I used to have these CSS snippets to center table both on reading and live preview:

.table-wrapper, table {
    margin-inline: auto !important;

table {
    margin-left: auto;
    margin-right: auto

But now they does not work anymore, having these 2 snippets only makes my table centered on reading view, I would like to have it centered bot on reading and live preview.

Any idea?

Have you recently switched themes?

table, .table-wrapper  {
    margin-inline: auto;

should be sufficient to center tables, in Live Preview and Reading view, for most themes. In the Default theme:

CleanShot 2024-04-22 at 07.53.41

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.