Site logo

Archived topic

Trying to change the actual width of ONE block of text in block editor

5 replies · Started by Trish on February 28, 2022

Viewing posts 1–6 of 6

Trying to create a change in ONE block of text, I added the following:

.your-block-class {
width: 60%;
}

which makes the text PERFECTLY wrapped... BUT... now it's all on the left instead of the text block being centered.

Tried adding 3 columns and adjusting the columns but nooooway could I get the text positioned properly, nor would it wrap like the block above it. :-(

Help?

Try this CSS:

.your-block-class {
    margin-left: auto;
    margin-right: auto;
}

Nope... no change.
I need the block itself to center on the page.
The text centers perfectly... just not the block.

I'm not seeing the code has been added to your site.

How did you add the CSS?

GOT IT... FINALLY!
THANKS

No problem :)

This archived topic is closed to new replies.