Column images stacking on mobile
-
Hi there,
I’ve created an “As seen in” section on my website with six logos underneath (created using a three column block and then splitting those into two with image files).
I love the way it looks on desktop all in one row, but on mobile it stacks all six images making them quite large and with lots of space in between, making it quite a scroll to get past. I’d like the images on mobile only to be “paired together” as per the three original columns. So on mobile it would be two logos across over three rows and without a lot of space in between them.
Can anyone assist with CSS for this? I have tried the “group” functionality but it doesn’t seem to be working. I have also asked this question here before and received an answer that worked at the time, but now the problem has returned (perhaps after a WordPress update). I have checked that the code is still there but it just doesn’t seem to override what I need it to anymore.
The existing code is this:
/**Logos 2x2 formation**/ .home .wp-container-12.wp-block-columns, .home .wp-container-16.wp-block-columns, .home .wp-container-20.wp-block-columns { flex-wrap: nowrap !important; margin-bottom: 0; } /**Reducing spacing between logos**/ .home .wp-container-22.wp-block-columns { row-gap: 0px; }
Many thanks in advance for any assistance you can provide.
The page I need help with: [log in to see the link]
- The topic ‘Column images stacking on mobile’ is closed to new replies.