[Support request] Align “overlapping” images in gallery

Home Forums Support [Support request] Align “overlapping” images in gallery

Home Forums Support Align “overlapping” images in gallery

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1456488
    Reto

    Hi all
    I have a gallery with six columns if logos. But if there are less than 6 images for the last row (e. g. 28 logos in total), there will be less columns in the last row. The images are centered instead of left aligned. Is there a way to fill the columns from left to right even if there are less than 6 images for the last row?

    Thank’s for your support.
    Reto

    #1456639
    David
    Staff
    Customer Support

    Hi there,

    the WP gallery block forces all gallery items to fill the space available, which is why the end row with less ‘center’ aligns them.

    Try adding this CSS to stop that from happening:

    .wp-block-gallery li.blocks-gallery-item {
        flex-grow: 0;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.