This theme component inserts buttons on the post composer toolbar to align uploaded images with text left or right, in center of post, or to align multiple images in a grid, using the newly implemented grid tags. The grid will automatically size the images to fit depending on how many and each one’s dimension, and it will also link to the bigger uploaded versions. The buttons / align functions can be used multiple times in one post to create a variety of layouts. Works for both desktop and mobile views.
To use, simply click the image alignment button you need, then upload images to the designated spot between the resulting tags (marked by placeholder text which can be edited in component settings).
Note that the grid part of this component is for aligning uploaded images, not image links (the other alignment options will work for link images). I borrowed some of the basic code framework from @Steven’s useful MD Composer Extras component.
just insert some <br><br> html tags in between the first text block and the second <div-data-theme…> tag until it spaces properly. I will try to program a hard return or something in there when I get some time.
yea I don’t like that method either. I was thinking of perhaps trying a white space property solution. ultimately, it works best if the aligned images are separate posts. Unfortunately, images in tables don’t work great either.
Tried those flex align property solutions but couldn’t come up with something consistently workable. I did find a usable workaround though. If you make each image-text section a block quote, it separates them (but includes the quote formatting for the text):