Site logo

Archived topic

All the 2 column tables I have on one post are aligned left and refuse to center

5 replies · Started by Kevin on May 12, 2022

Viewing posts 1–6 of 6

Hi can you help me to fix an alignment issue.

I have lots of tables in one blog post. All of them 2 columns - fixed, and they all align left in the desktop.

When I add text to the bottom of each table, it will not center. Can you help me to fix this glitch please?

Thanks
Kevin

Hi there,

try adding this CSS:

.wp-block-table figcaption {
    text-align: center;
}

I went to my simple CSS plugin and it appears that I must've asked for this once before, back in the mists of time, because that code already there.

What do you suggest?

The CSS you have is for the Block Image, looks similar - so you have:

.wp-block-image figcaption {
    text-align: center;
}

Change that to:

.wp-block-image figcaption,
.wp-block-table figcaption {
    text-align: center;
}

Or you could just apply it to ALL figcaption elements:

figcaption {
    text-align: center;
}

Thats that one fixed.

Thanks
Kevin

Glad to hear that!

This archived topic is closed to new replies.