Home › Forums › Support › How to modify vertical and horizontal spacing between gallery items This topic has 3 replies, 2 voices, and was last updated 3 years, 5 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts November 9, 2020 at 11:50 pm #1524852 Alexandra Hey guys, I was wondering whether you could help me modify the spacing between gallery items. These are the spaces that I need to change to 1 px: https://prnt.sc/vgk3bi Sample post I would highly appreciate your help, as always! Thank you so much! Alexandra November 10, 2020 at 2:47 am #1525012 DavidStaff Customer Support Hi there, try adding this CSS: @media (min-width: 600px) { .wp-block-gallery.columns-4 .blocks-gallery-item { width: calc(25% - 1px); margin-right: 1px; } } .wp-block-gallery.columns-4 .blocks-gallery-item { margin-bottom: 1px; } .wp-block-gallery.columns-4 .blocks-gallery-item figure { margin-bottom: 0; } November 10, 2020 at 5:28 am #1525140 Alexandra This is a dream come true!! 😀 So happy! I can’t thank you enough! November 10, 2020 at 5:38 am #1525148 DavidStaff Customer Support Happy to be of help! Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In