View Single Post
Old 03-30-2025, 04:59 PM   #915
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,091
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by gbm View Post
Calibre conversion will not recognize text-align: center" if it is in the body css.
It works for me. I just converted a book using the calibre conversion dialog from KFX to EPUB that had a short chapter of centered text. Here is what KFX Input produced:
Code:
<body class="class-1">

.class-1 {font-family: sans-serif; font-weight: bold; text-align: center}
And here is the resulting EPUB produced by calibre conversion with text-align retained:
Code:
<body class="class">

.class {
    display: block;
    font-family: sans-serif;
    font-weight: bold;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    margin: 0 5pt;
    }
I suspect that you have some other conversion setting that is interfering. I might be able to tell from a full conversion log.
jhowell is offline   Reply With Quote