View Single Post
Old 03-04-2019, 07:09 AM   #1
quinta@ebf.cz
Connoisseur
quinta@ebf.cz began at the beginning.
 
Posts: 62
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
display: block for image converted from docx

Hello,

seems images converted from docx to epub obtain css rule "display: block".

Such styling has negative consequences for (at least) inline images:
- image no longer appears centered (when centering is achieved by the paragraph format, eventually applaing css rule "text-align: center" to parent paragraph in epub)
- image surrounded by text appears with undesirable line breaks before and after the image itself

Can I somehow disable this behaviour? So far the workaround for me is to manually edit converted epub – delete rule "display: block" (for class applied to images).
quinta@ebf.cz is offline   Reply With Quote