Epub export, containers inside containers?
I have been struggling with this for some time and would like to learn more about handling it in the future.
I build a lot of books in InDesign (18.2.1) and export them to epub3. Using Sigil (1.9.30) I end up massaging a lot of coding. I have been stumped with the Container setup that InDesign creates with eh export to reflowable epubs. When exporting a grouped image and caption which is anchored to a text location. InDesign creates containers inside containers. I have 3 images attached that show the xhtml, css, and visual. Looking at the visual, you will see a lot of whitespace below the caption. I have tried adjusting everything related to height & width, margins, and padding for the containers with no luck in removing the distance below the caption. The text class margins or padding doesn’t affect the space either.
I would like to know how to work this situation so it will flow properly for any size image with or without a caption. Mainly how to code containers inside contains and get the wrap to work properly. I would greatly appreciate any help or place I can learn more about this. Is there a better way to do this?
Thanks, Rick



