Home › Forums › Support › Adding padding to images on mobile This topic has 3 replies, 2 voices, and was last updated 3 years, 10 months ago by John. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 17, 2020 at 6:15 am #1331188 John Hi there… On mobile, I’d like to have just a little padding (right and left) for the images on this page. My own CSS attempt isn’t working. @media(max-width: 768px) { .wp-block-coblocks-gallery-masonry alignwide { padding: 0 1em 0 1em; } } Thanks, John June 17, 2020 at 7:17 am #1331256 John This worked. @media(max-width: 768px) { .coblocks-gallery { list-style: none !important; padding-left: 2em; padding-right: 2em; } } Thank you! June 17, 2020 at 8:08 am #1331469 DavidStaff Customer Support Glad you found a solution. You’re original attempt needed to be this: @media(max-width: 768px) { .wp-block-coblocks-gallery-masonry { padding: 0 1em 0 1em; box-sizing: border-box; } } June 17, 2020 at 8:34 am #1331507 John Thank you, David! 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