View Single Post
Old 05-02-2013, 11:44 AM   #1
silviolorusso
Enthusiast
silviolorusso began at the beginning.
 
silviolorusso's Avatar
 
Posts: 32
Karma: 10
Join Date: Jun 2011
Device: none
Best way to format images and captions in EPUB

Hello,

I'm wondering what is the best way to format images and captions in EPUB.
I tried the following but I have a problem when I have a very long image, it goes over the window size in ADE.

Code:
<style>
img {
	width: auto;
	height: auto;
	max-width: 70%;
	max-height: 100%;
}
div.img {
	text-align: center;
        page-break-after:always;
}
</style>

<div class="frame img">
	<img src="source.jpg" alt="image" />
        <p class="caption">Caption</p>
</div>
silviolorusso is offline   Reply With Quote