But your image style and class are both wrong.
You either set height and and width to px (never em or rem), or set one to auto and the other to a %
Anything else is unreliable.
Like
.ch-image {
width: 50%;
height: auto
}
Also don't use h2 > img
"object-fit: contain" will not be reliable and will distort as height: 1em
Last edited by Quoth; 10-01-2023 at 02:12 PM.
Reason: mistake
|