Featured image background-size
-
Hi,
I have a Masonry layout:
https://artmediastock.com/wp-content/uploads/feat-img.png
Using Nelio, items have fixed size (see first 3 items):
https://artmediastock.com/wp-content/uploads/nelio-img.png
Modifying css of the item from “background-size: cover;” to “background-size: contain;” and “img.nelioefi {width:100%;height:auto;}”, I got this:
https://artmediastock.com/wp-content/uploads/nelio-img-css.png
Please note the space above and below the image. How to make the container fit the image keeping the aspect ratio?
Thank you and best regards,
Gabriel
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Featured image background-size’ is closed to new replies.