View Single Post
Old 02-07-2019, 02:35 AM   #34
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)
This code isn’t a solution for the whole figure-caption problem. I made this code for two main reasons:

1. It makes us able to place an image that won’t exceed neither the height nor width of the page, yet keep it’s ratio, and will be centred in the page.
2. It makes us able to make the image respect a certain % of the height of the page.

The code is advantageous from others because:
1. Doesn’t require to enter dimensions in pixel
2. Seems to be well supported (works on ADE, Kobo, Google Books, iBooks)

The code was made for ePub3, but Ruben saw the SVG code was also supported on ePub2.

Last edited by momoha; 02-07-2019 at 02:37 AM.
momoha is offline   Reply With Quote