View Single Post
Old 03-21-2024, 04:10 AM   #14
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 983
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
So the cleanest solution seems to me to use another HTML element that doesn't match the default non-patched kepub stylesheet, and then style that to be centred. For example:

Code:
<span class="centred">***</span>
...

span.centred {
    display: block;
    text-align: center;
    /* etc */
}
Pick another element if abusing <span> offends, but you get the idea.
chrisridd is online now   Reply With Quote