Home › Forums › Support › Added Custom CSS for Margins on Pictures Doesn’t Affect All This topic has 3 replies, 2 voices, and was last updated 3 years, 3 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 20, 2023 at 5:32 am #2502769 Mihail Hello, I added this custom CSS to add margins to all my photos in single blog posts, as seen in this support topic. body.single figure.wp-block-image img{ margin-top:50px; margin-bottom:50px; } However, it doesn’t change the margins on all my photos. I made sure they are Gutenberg image blocks, but still doesn’t have any effect on them. Can you please help me with this? I added the blog post credentials below. Thank you! January 20, 2023 at 6:02 am #2502805 DavidStaff Customer Support Hi there, try changing the CSS to: body.single .wp-block-image img{ margin-top:50px; margin-bottom:50px; } January 20, 2023 at 3:41 pm #2503489 Mihail Thank you David, this worked! 🙂 January 21, 2023 at 3:06 am #2503720 DavidStaff Customer Support Glad to hear that! 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