Centering content

Hello! I have some content I want centered. It’s so far styled with pure markdown. I’ve created a custom css class to center content which I have used on images in this way: {.center}

How do you guys center content like text without breaking markdown? I guess I could just target all

with the same class I use to center pictures, but I only want it on one page, not globally. There’s so many ways to do things and I don’t want to take an unnecessary complicated route :slight_smile:

Probably the cleanest way is to use a shortcode like [center][/center]

This is available in the shortcode-core plugin.

1 Like