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.
|