View Single Post
Old 05-22-2013, 09:47 AM   #17
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by roger64 View Post
@RbnJrg

Hi Jorge

Thanks so much for your help. I have really spent hours trying to do it and had given up. Your EPUB looks good. I will study it closely and look how it displays on Kobo and later how it goes to PDF with Prince.

ADE is OK. Prince too. The only thing, Kobo does not agree (text mixes with image), but Kobo is backward on so many fields with formatting, I find it hardly surprising.

The code cannot be more compact and clearer. Use of background, background-size (I noted for this one to be careful) and boxes is really very convenient.
Hi Roger;

Many thanks for your words; nice to know that the code could help you. But maybe the code could be a bit simpler (and compact) If we work with an image in two sections, then we could get something like the following:

Code:
p {
  text-align: justify;
  text-indent: 0;
  margin: 0;
}

.float_left {
  clear: left;
  float: left;
}
And in the .xhtml file we could use:

Code:
<p>...something...</p>
<p><img class="float_left" alt="" src="../Images/bird1.jpg" /></p>
<p><img class="float_left" alt="" src="../Images/bird2.jpg" /></p>
<p>...something...</p>
Precaution: Apply the class "float_left" inside the <img> tags and not inside the <p> tags.

It works in ADE (with any font size) and maybe this solution also could work in Kobo

Regards
Rubén
Attached Thumbnails
Click image for larger version

Name:	Parrot2.jpg
Views:	191
Size:	161.2 KB
ID:	106131  
Attached Files
File Type: epub Parrot2.epub (12.5 KB, 163 views)
RbnJrg is offline   Reply With Quote