Quote:
Originally Posted by slowsmile
There are two ways to fix that problem. For the first way, just export your ODT doc to Word doc format and then convert the Word doc to epub format. In epub format you could then write a simple style for the CSS in Sigil like this:
p.center {
text-align: center;
}
Use the above style within HTML images like this:
Code:
<p class='center'>
<img alt="img01" src="../Images/Title_Image.jpg">
</p>
The second way to quickly center each of your epub images in Sigil would be to click and highlight each image in the Sigil html editor in turn and then just click the 'Align Text Center' button in the Sigil Toolbar.
|
You left out the indent. I had to remove the p as I cannot stand p. CSS styles. You need the indent to be 0 because p should be the default for most paragraphs and that includes the indent.
Code:
p {
margin-top: 0;
margin-bottom: 0;
text-indent: 1.2em;
}
.center {
text-align: center;
text-indent: 0;
}