View Single Post
Old 10-21-2019, 01:35 PM   #3
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,220
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by JSWolf View Post
If I have code that look like this...

Code:
<p><b>This is bold text.</b></p>
<p><b><i>This is bold italic text.</i></b></p>
<p><i>This is italic text.</i></P>
The text shows bold and/or italic correctly. But if I have text that looks like this...

Code:
.bold {
  font-weight: bold;
}
.bolditalic {
  font-weight: bold;
  font-style: italic;
}
.italic {
  font-style: italic;
}

<p class="bold">This is bold text.</p>
<p class="bolditalic">This is bold italic text.</p>
<p class="italic">This is italic text.</P>
The text is just plain text. Can this be fixed so if the bold and/or italic is part of a class that the text shows the bold and/or italic?

Thanks.
Works just fine for me.
Windows 10 x64 1903, calibre 4.2 64bits.

Are you sure you css style sheet is linked to you html document?
thiago.eec is offline   Reply With Quote