Thread: ePUB weight
View Single Post
Old 02-25-2015, 05:08 PM   #14
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,540
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
While yes, you can code
Code:
<p style="text-align:center">* * *</p>
it's being suggested that using a stylesheet and named styles would be more beneficial.

You would want to make a new stylesheet (say my.css) and it would contain
Code:
.center {
    text-align: center;
}
Then you would link my.css to the files within the eBook within Sigil, and in the actual files just code
Code:
<p class="center">* * *</p>
<h2 class="center">Préambule</h2>
Or if you wanted ALL <h2>'s to be centered you could place in my.css
Code:
h2 {
    text-align: center;
}
and then just code
Code:
<h2>Préambule</h2>
PeterT is offline   Reply With Quote