View Single Post
Old 09-25-2023, 04:30 PM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,155
Karma: 105212035
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
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
Quoth is offline   Reply With Quote