First image in Gutenberg galleries does not have proper height
-
Dear Anders, All,
When inserting standard galleries (no plugin) with the Gutenberg editor, the 1st image does not have the correct height : it is always a bit shorter than the others (see top of images).I could replicate this with clean installs of several of Anders’ great themes (Hitchcock, Hamilton, Fukasawa, …).
I looked around the CSS with Firefox’s inspector, and have managed to fix this by using the below CSS in my Child Theme’s STYLE.CSS. I just hope I did not break anything else by doing so…
Here is the code I used to correct this weird behaviour:
.post-content ol > li:first-child, .post-content ul > li:first-child { margin-top: 0; }
(I changed the margin-top from .5em to 0)
Did anyone experience this ?, and is there a cleaner way to fix this ?…
Thanks for any suggestions you may have…
Christophe
- The topic ‘First image in Gutenberg galleries does not have proper height’ is closed to new replies.