View Single Post
Old 05-02-2025, 09:11 AM   #18
robertmchicago
Enthusiast
robertmchicago began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2025
Device: none
Quote:
Originally Posted by Turtle91 View Post
Using ePub3 - if your targeted reader supports the css3 properties - you can use:
'object-fit: contain' as you mentioned, and maybe take a look at 'display: flex' .

You would need to provide fallback coding for devices that don't support them.

As DNSB mentioned, I use an svg wrapper that seems to be widely supported and works on ePub2/3 and doesn't care if the reading
Thank you for your suggestion and codes for SVG wrappers, but I'm more comfortable using <img> . SVG wrappers are usually used for full-page images, also for fixed-layout epub. My images are full-width, but not full page.
robertmchicago is offline   Reply With Quote