New user w/ question
#1  AliceWonder 09-13-2019, 06:52 AM
Yesterday someone gave me an older iPad.

I installed and paid for Marvin 3 to test a couple ePub books I'm working on. Also tested in iBooks but Marvin seems popular in iOS so I thought I should test with that too. And the other iOS ePub readers are too snobby to work with older iPads.

It seems Marvin 3 doesn't handle images inside paragraphs well. For example:

<p>On Linux if I were to recommend a text editor it would likely start a holy war <img src="images/sarcasmSmil.svg" alt="[sarcasm smiley]" class="emoji" /> so I will refrain from doing so.</p>
with this css
img.emoji {	display: inline;	height: 1em;
Works in other readers but in Marvin it ends up displaying the image scaled to screen width instead of scaled to height of 1em.

Is this something I can workaround in my ePub source or is it something that I am just going to have to accept isn't going to work in Marvin?

#2  Turtle91 09-13-2019, 04:13 PM
Very few readers/apps do well with the "height" property...something about not knowing to which height the property refers (screen height, document height, container height, etc.)

Change your CSS to read:
img.emoji {width:1em} /* or whatever you need to make the dimensions correct */

Marvin works fine with that...I use it all the time.

#3  AliceWonder 09-13-2019, 04:46 PM
Thank you! It works perfectly that way.

Today's Posts | Search this Thread | Login | Register