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

Home Forums Support [Resolved] Trying to change the actual width of ONE block of text in block editor

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2137219
    Trish

    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?

    #2137220
    Ying
    Staff
    Customer Support

    Try this CSS:

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

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

    #2137245
    Ying
    Staff
    Customer Support

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

    How did you add the CSS?

    #2137246
    Trish

    GOT IT… FINALLY!
    THANKS

    #2137332
    Ying
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.