Well, the figure is not centered within the wp-block-image DIV if that is what he is referring to. My guess is the first image is supposed to be below the Barnes & Noble button in the middle and not under the Left Buy at Amazon button?
With my own testing, also does not center. I think the following CSS is causing it:
.wp-block-image .aligncenter, .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image.is-resized {
display: table;
margin: 0;
}
That margin:0 shoves the image to the left. This rule is overriding:
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
Which the <figure>
tag is using.
Well, I found this: known issue: Alignment: images cannot be centered on front-end [3.7] · Issue #9503 · WordPress/gutenberg
-
This reply was modified 6 years, 6 months ago by
MarkRH.
-
This reply was modified 6 years, 6 months ago by
MarkRH.