View Single Post
Old 10-14-2025, 12:15 AM   #33
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,907
Karma: 8987599
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by ElMiko View Post
The last epub you uploaded had both epub2 and epub3 solutions.

the svg code for the the epub2 solution was:

Code:
.svg_inline {
  display: inline-block;
  width: 100%;
  height: auto !important;
  margin: 0;
  text-indent: 0;
}
which results in the image always scaling to fill 100% of the width of the window, rather than the coditional height parameters we've been discussing.

For the epub3 solution,

at a max height of 4em these are the results I get when the window is wide:

Attachment 218606

at a max-height of 2em this is what i get:

Attachment 218607

In all cases, it doesn't seem to care about the max-height value (at least not for determining the height of the image). It just keeps growing to fill the window width-wise.

EDIT: I also updated your original file to include the text-alignment and the border as per your latest message, but it made no difference in terms of the above described behavior (the only difference now being that there was a red border... obviously).
Please, read again my previous post and watch the code I wrote there.
RbnJrg is offline   Reply With Quote