Forums
Home / Plugin: Ocean Posts Slider / Object-fit Cover
(@milettic)
5 years, 2 months ago
How to fit images the same height? Thank you
(@apprimit)
Hello,
Try to use the image of the same size to fix it. Also, go to Dashboard > Posts slider > Edit item > Portfolio settings > General tab and select an image size to view the changes.
But, I want to be able to add any size and fit like a cover.
5 years, 1 month ago
Try to add the below css code to the Customize > Custom CSS section and check it works or not –
.oceanwp-post-list.two img { background-size: cover; }
It doesn’t work for me. I’ve tried different CSS but strangely nothing works… Thank you
Try this one. It should work –
.oceanwp-post-list.two img { background-size: cover !important; }