[Resolved] Central Align text within a container that is using display: table;

Home Forums Support [Resolved] Central Align text within a container that is using display: table;

Home Forums Support Central Align text within a container that is using display: table;

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2380209
    Mark

    Hello,

    I’m in the process of building a new site and I have a section with two columns of text. They have text effects on e.g. a strike through and animated underline, and using display: table. I think this means I can’t vertically align them, but wanted to double check if there was a workaround.

    Thanks in advance!

    #2380248
    David
    Staff
    Customer Support

    Hi there,

    you could try this:

    1. Add this CSS:

    
    .center-content .gb-inside-container {
        width: max-content;
        margin: auto;
    }

    2. Select each of the Column Containers and in Advanced > Additonal CSS CLass(es) add the center-content class

    #2380893
    Mark

    Works perfectly, thanks, really appreciate it!

    #2381388
    David
    Staff
    Customer Support

    Glad to hear that!!

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