Gutenberg: Image alignment left and adding a spacer

Created on 22 Apr 2019  路  3Comments  路  Source: WordPress/gutenberg

Describe the bug
Add a few image blocks and align them to the left so that the caption shows up correctly below them. Then add a spacer block. Mine looked like this:

Screen Shot 2019-04-22 at 10 03 55

The conclusion I reach is that I have to add CSS code to get the spacer to show up below the 3 image blocks that are all aligned to the left.

How can we control when the wrap is active or not? For the last image it would be good to turn off the wrap so that I can add the spacer below the 3 images. (I can not use a gallery as each image needs to have a custom link.)

This issue seems to be very similar:
https://github.com/WordPress/gutenberg/issues/13784

[Type] Bug

All 3 comments

It seems the issue is caused because the images are floated and so the spacer just takes there space.
Given that images are behaving as they should (floating), I guess the only fix for this problem would be adding some CSS that clears the previous floats on the spacer block. Given the nature of the spacer block that change would probably make sense, in fact, using spacer blocks would become a simple way for users to apply a float clear operation. Any thoughts on this @youknowriad, @mapk?

By adding a clear: both; on the spacer block, we could get it to look like this.

Screen Shot 2019-05-28 at 8 03 37 PM

It's still a little odd looking, but provides the outcome I think you're expecting.

Yeah that will help a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhenrylucero picture mhenrylucero  路  3Comments

aaronjorbin picture aaronjorbin  路  3Comments

wpalchemist picture wpalchemist  路  3Comments

franz-josef-kaiser picture franz-josef-kaiser  路  3Comments

jasmussen picture jasmussen  路  3Comments