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

    Hey there,

    I used this code I found in the documentary for showing 6 rows, but the content does not center correctly.
    the margin to the left ist bigger than to toe right.
    Do you know where the problem is?

    #av-extra-columns .column-top-margin {
    margin-top: 0 !important;
    }
    
    #av-extra-columns .flex_column {
    width: 14%;
    flex-basis: 14%;
    margin-left: 2%;
    margin-top: 20px!important;
    }
    
    #av-extra-columns .flex_column.first {
    clear: none!important;
    margin-left: 2%;
    }
    
    /* Two columns in mobile */
    
    @media only screen and (max-width: 768px) {
    #av-extra-columns .flex_column {
    margin-bottom: 20px!important;
    margin-top: 20px!important;
    /* Width of the container */
    flex-basis: 40%;
    }
    
    #av-extra-columns .flex_column:nth-child(even) {
    margin-left: 10%!important;
    }
    }
    
    #1402566

    Hey Monika,
    Thank you for the link to your site, Try this CSS instead:

    #main #av-extra-columns .column-top-margin {
    margin-top: 0 !important;
    }
    
    #main #av-extra-columns .flex_column {
    width: 16%;
    flex-basis: 16%;
    margin: auto;
    margin-top: 20px!important;
    }
    
    #main #av-extra-columns .flex_column.first {
    clear: none!important;
    margin: auto;
    }
    
    /* Two columns in mobile */
    
    @media only screen and (max-width: 768px) {
    .responsive #top #wrap_all #av-extra-columns .flex_column {
    margin-bottom: 20px!important;
    margin-top: 20px!important;
    margin: auto;
    flex-basis: 44%;
    }
    .responsive #top #wrap_all #av-extra-columns > .container {
    width: 100%;
    max-width: 100%;
    }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1402753

    Thank you Mike.

    I just put the code inside and now there are no margins between the columns and in mobile version there arent two rows next to each other any more.
    And now the whole block has more space to the right than to the left.
    So i think in general the old Code was a bit more what I was looking for, just centered.

    Do you think I could take the old code and just adjust a small part?

    #1402769

    Hi,
    Please try adding this css:

    #av-extra-columns .entry-content-wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    }

    If this still doesn’t help then please include an admin login in the Private Content area so we can be of more assistance.
    Please see the expected results screenshots in the Private Content area.

    Best regards,
    Mike

    #1402778

    Great Thank you Mike!
    That works now!

    #1402810

    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘6 rows are not centered – too much space left side’ is closed to new replies.