View Single Post
Old 01-29-2019, 09:14 AM   #20
momoha
Annabelle Viau
momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.momoha 's shirt has a full set of merit badges.
 
momoha's Avatar
 
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
Quote:
Originally Posted by RbnJrg View Post
But of this way you'll need to write the width and height for each image and that is what you wanted to avoid (style="height: 20pt; width: calc(20pt*73.275/17.408)) Or am I wrong?
Yes indeed... that way I just avoid making the calculation myself Well the embedded SVG markup isn’t that bad as I can process it with regex, but yeah still... using calc seems risky.

I guess there’s simply no good solution here, as I really need a single ePub that works on both Kobo and Google Books. I’ll test the code with calc more extensively, else I’ll just make the calculations all the time
momoha is offline   Reply With Quote