Error Ghost gallery


#1

Hi, please see the picture:

Why the image like that?

The normal image preview like this: https://blog.ghost.org/image-galleries/

Can you fix it?


#2

CSS has some issues with aspect ratio so the default Casper theme used a bit of JS to fix it. If your theme doesn’t try to do anything to fix it, the images will look like that because that’s how they were styled.


#3

Hi vikas, Thanks for your explain.

Can you help me about? I am not too familiar with CSS and tired to try fix it.


#4

This isn’t a css-fix, it’s a javascript fix. I can’t really give you specific guidance without seeing your site, but here’s how Casper (the default Ghost theme) maintains support for galleries:


#5

Hi, thanks for your attention. I solve the problem. I inserting this css custom to Ghost admin:

.kg-gallery-image img {
height: auto !important;

And now, the everything gone be ok:

:grin: