Margins Added to Image Blocks Set to ‘Full Size’
-
Wondering if anything was ever figured out on a post here that was closed without any resolution regarding an arbitrary 2rem margin that is added to the top & bottom of image blocks when the image resolution is set to ‘Full Size’ (see: https://www.ads-software.com/support/topic/wp-block-image-size-fullmargin2rem-0/).
No screenshots should be necessary, it’s a pretty obvious issue. Insert an image block inline with some content. Set the resolution on the image to ‘Full Size‘. Go to the front end and examine the styles on the <figure> element. There is a style added (targeting ‘.wp-block-image.size-full‘) with 2rem top & bottom margin that overrides the default figure style of ‘0’ margin. This extra margin style is not applied when a different resolution is chosen (e.g, Large, Medium, etc.).
I can obviously override this override. But that makes for convoluted styles, especially if the issue is changed or corrected with some future update.
- You must be logged in to reply to this topic.