Archived topic
my query loop images are not equal
8 replies · Started by eran on September 24, 2022
Hi,
The query loop at my footer (that show my posts) are not equal.
how can I make them same size?
Hi eran,
Any chance you can link us to the site in question?
You can use the private information field.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Done.
Can you enter a value in the image's height field?
I can but it stretches the images.
why all of the images are ok but the last two posts I uploaded are not equal?
Hi,
Anyway I can fix it without setting the height value?
Hi Eran,
You would need to define a height somewhere to assure they all have the same height. Whether it be through the Image or placing the inside a Container Block and setting a height there, there should be a height value.
Can you try setting the object-fit of the Image Block to Object when setting a height?
I don't have the option "Object" I put it on "Cover"
Cover should work.
If all the images have the same aspect ratio, then you don't have to set a height value.
But if the images have different aspect ratios, then the height value is necessary.
Then you can set the object-fit to cover, so the image will cover the space that is reserved for it.