Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1355360

    I am trying to use the technique described here to lay out columns that don’t add to 100% as centred/centered in a color section.

    I’m doing it verbatim (even using the id) and it’s not working. It’s always rendering the columns to fill the space rather than adding equal space on either side.

    Any ideas?

    #1355390

    Hey ilowelife,

    Could you post a link to where we can see the results you are getting please?

    Best regards,
    Rikard

    #1355405
    This reply has been marked as private.
    #1355457

    Hi,

    Thanks for that. The columns looks centered on my end, is that not what you are looking to achieve? I’m not sure I understand your intentions so please try to explain them a bit further, or post screenshots highlighting what you would like to achieve.

    Best regards,
    Rikard

    #1355644

    Hi @Rikard

    The issue is not that they’re not centred, it’s that the code provided in the example does not maintain the specified relative column sizes. The output in the documentation (https://kriesi.at/documentation/enfold/example-of-center-align-columns/) is what I’m looking for, but in my case, the columns continue to occupy the full width by expanding past their designated 1/4 or 1/3 size.

    In the documentation, the centred columns keep their width designation. When I use the same code, the columns fill the available space, at least in any browser on my machine. Please see screenshots:
    https://drive.google.com/drive/folders/1Ez2QQ4T8EKkUHMnqDP9oZULRORoPUhYG?usp=sharing

    I notice that the example code is using an older version of Enfold, so does the CSS snippet need to be updated with a new selector?

    #1355721

    Hi,
    Thank you for the link to your site, I see that you are using Equal Height columns, when you do the inner columns are wrapped in a flex_column_table and a av-flex-placeholder is added between the columns.
    If you use Individual Height columns your width issue would be corrected, but I assume that you wish to continue using Equal Height columns, so try changing the color section ID to eh-center-align-columns for Equal Height columns, and ih-center-align-columns for Individual Height columns.
    Then use this css:

    #ih-center-align-columns .entry-content-wrapper,
    #eh-center-align-columns .entry-content-wrapper .flex_column_table {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    justify-content: center;
    }
    #eh-center-align-columns .av-flex-placeholder {
        display: none;
    }

    After applying the css, please clear your browser cache and check.
    expected results:
    2022-06-18_008.jpg

    Best regards,
    Mike

    #1355724

    Thank you @Mike.

    This worked.

    Honestly, you folks would save yourselves a lot of trouble if you just productized this kind of thing. It would be less brittle and you’d have more long-term control over it. A tidy little checkbox to ‘center columns’ would probably do it :-)

    I appreciate the support.

    #1355725

    Nevermind. I think I have it.

    @Mike – I spoke too soon.

    This solution doesn’t seem to respect the column spacing. In your example it seems to, but on my site it doesn’t:

    Anything to be done about that?

    • This reply was modified 2 years, 2 months ago by ilowelife.
    • This reply was modified 2 years, 2 months ago by ilowelife. Reason: Figured it out
    #1355729

    Hi,
    So you have this sorted out?

    Best regards,
    Mike

    #1355738

    Yes, thank you.

    #1355740

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Centering /centring columns not working’ is closed to new replies.