View Single Post
Old 09-28-2025, 02:31 PM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,569
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by ElMiko View Post
As I understand it, "em" isn't a absolute unit, it's a relative unit. So, I mean, I guess it's as natural as any other em value.
With "natural" height, I mean the height of the image if you don't specify any height. If it's smaller than 4em, setting max-height:4em will not do anything.

Quote:
Regarding max-width, the issue is that setting it at 100% means that the image will appear to stretch vertically if the screen width is too narrow relative to the defined height.
Not in Firefox, or in the calibre viewer, or in KOReader, at least with the attached test, as far as I can see.
Attached Files
File Type: epub test.epub (19.4 KB, 7 views)

Last edited by Jellby; 09-28-2025 at 02:38 PM.
Jellby is offline   Reply With Quote