View Single Post
Old 03-13-2025, 09:42 AM   #4
piovac
Member
piovac began at the beginning.
 
piovac's Avatar
 
Posts: 16
Karma: 10
Join Date: Jan 2014
Device: iPad Pro, Onyx Note 3, Kindle Paperwhite, MacBook Pro, Pixel 7 Pro
Question

Unfortunately the problem is more subtle than that. The images are correctly centered in the EPUB and the DOCX translation, but not in the PDF. The CSS is correctly configured to center the images. Here is an example:

Here is how the images are included in the EPUB:

Code:
<div class="illustype_image_text"><div class="image_text" style="width:65%"><img src="images/e9780486153353_i0004.jpg" alt="e9780486153353_i0004.jpg"/></div>
And here is the definition of "illustype_image_text" in the CSS:

Code:
.illustype_image, .illustype_image_net, .illustype_image_tab, .illustype_image_text, .illustype_image_text_net, .illustype_image_math, .illustype_image_deco, .illustype_image_deco_net, .image_orig_tab, .illustype_image_externe, .image_sep_para {
		text-align: center;
		margin-top: 1.5em;
		margin-bottom: 1.5em;
		page-break-inside: avoid;
	}
piovac is offline   Reply With Quote