View Single Post
Old 11-27-2018, 10:32 AM   #1
Jane Eyre
Zealot
Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.Jane Eyre got an A in P-Chem.
 
Jane Eyre's Avatar
 
Posts: 126
Karma: 6368
Join Date: Nov 2018
Location: Italy
Device: Kindle P.white3/Kobo Clara 2E
Image in epub with Tolino ereader

Hi
I often create my ebooks myself, exporting documents by W2epub and optimize by Sigil.

I know two ways of inserting a picture in epub, these: by a <div> or <p>. Let's suppose I want it to centred in my page. So, I can put in my css:

1)
Code:
div.picture  {
  text-align: center;
     }
2)
Code:
p.picture  {
  text-align: center;
     }
maybe as a blockquote element.

So, I found out that the DIV code works well in either kindle or kobo, while tolino requires P. Otherwise the image won't be showed in the middle.

I ask you, is it a correct behaviour?

Which of the two solutions should I use?
Jane Eyre is offline   Reply With Quote