In order to make them responsive, I have just changed these images from being background images to images themselves.
However, now they appear stretched as, compared to background images, you can’t set these to “size: cover”.
I hope that makes sense, anyhow, is it possible to rectify this?
Here’s a screenshot of the issue:
I’d recommend using background images for this. It makes them a lot easier to control! Or, if you had to use images blocks, you could have your image wrapper as a flexbox with overflow:hidden and then float the image in the centre of it. This would mean that they would be responsive.
Hiya, do you have a screenshot of what you mean?
I set “image wrapper” to “flex”, but then it wont let me set “blog post image block” to “float” because it says … Floats don’t affect flex children.
Hey! ToreSBentsen code snippet should fix the issue, that was described, also there is a request in the wishlist to support object-fit in the Designer Expose object-fit and object-position on image | Webflow Wishlist. Please, vote if you think it will be useful
Hey! Just put this in your header under custom code in the settings panel. Remember to change “.ClassOfYourImage” to the class of your image. Then it should work like a charm.