View Single Post
Old 03-16-2025, 12:22 AM   #6
1ily
Connoisseur
1ily doesn't litter1ily doesn't litter
 
Posts: 63
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
Quote:
Originally Posted by Karellen View Post
Oh right. You are adding it in conversion, not actually editing the css in the ebook.

TBH, I have never fiddled with conversion settings as for me it is just easier to edit the css in the ebook.

So you are trying to colour the italic text.

If it were mine, I would change the <span class="italics"> to the correct <i> tags
Then I would create a css entry like this...

em, i, .italic {
font-style: italic;
color: #8D4CF6;
}

But if you still want to do that in conversion, others will need to advise you. But go ahead and try editing the css directly in a single ebook and see how it works out.
That is a good way to go about it, but I chose to do span[class*="italic"] because some of the class names have odd naming variations like "italic7", so the *= will catch any class name as long as "italic" somewhere inside it and apply the style!
1ily is offline   Reply With Quote