View Single Post
Old 03-19-2026, 06:06 PM   #65
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,925
Karma: 9553607
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by ElMiko View Post
I'm sorry. But I'm still confused... At 10em shouldn't the image be ten times the height of the font (at whatever size)?
You are defining the height in two places: in the parent element and in the image tag, so Readium is taking the height of the parent element. You need to add !important to the size of the image to give it priority:

Code:
.autoIMG {
	text-indent: 0;
	text-align: center;
	max-height: 32em;
	margin: 0;
	}
.autoIMGimage {
	width: auto;
        max-height: 32em !important;
	margin: 0 auto;
	display: block;
	}
Of that way, the height of the image will be ten times the height of the font.

Quote:
@RbnJrg - you say you got the code to replicate the effect, but what did you change from your previous attempt with the same code that appeared to be producing a normal image?
The issue is with your original code; I didn't change anything to reproduce the problem.
RbnJrg is offline   Reply With Quote