View Single Post
Old 04-22-2026, 02:33 PM   #4
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 372
Karma: 518
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by Vren View Post
Hi,

for names in my acknowledgement I wanted to use the font I use for my title chapters.

But when I do this, the name jumps to the next line in preview and I can't detect the error or the reason why. The name in the font appears in one single line. I haven't found a solution online (or maybe I haven't typed the error correctly).

Can anybody have a look at this and tell me what I can improve/change?

I used this in my style sheet:

/* <p class="LoftygoalsregularNamen">TEXT</p> / Text mit Schriftart "Lofty Goals"*/
.LoftygoalsregularNamen {
font-family: "Loftygoalsregular";
font-weight: bold;
font-style: normal;
text-align: justify;
display: block;
text-indent: 0em;
}

I also have added a test epub file for more info.
Place your names in <span> tags as DiapDealer said and change your CSS to remove display: block; --and most of the rest isn't needed either.

It will work the way you want like this:

.LoftygoalsregularNamen {
font-family: "Loftygoalsregular";
font-weight: bold;
}

and in the code view:

<span class="LoftygoalsregularNamen">First Name</span>
philja is offline   Reply With Quote