View Single Post
Old 08-12-2022, 09:06 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,966
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DaveLessnau View Post
I've got an epub that uses:

.strike {
text-decoration: line-through;
}

to strike through some lines of text. In Calibre, it looks fine. On my Kobo Forma, I can barely see the strikeout line going through the text. Searching the web, I find many instances claiming the underlying code for <strike> (deprecated), <del> and <s> is that same text-decoration line. On the w3c site for <strike>, I've tested all three of those methods and they all work well and look the same on my browser.

According to the mozilla.org site:

https://developer.mozilla.org/en-US/...tion-thickness

I can use text-decoration-thickness to change the thickness of that line and make it more visible. When I try, the Calibre editor "check book" function doesn't recognize it ("Unknown property").

Does anyone have another method of making that strikethrough line more visible?
Use the <del> tag. It works in ePub 2 with ADE 2.0.1 and ePub 3 capable programs. It actually works better (IMHO) then the text-decoration approach.

Last edited by JSWolf; 08-12-2022 at 09:15 AM.
JSWolf is offline   Reply With Quote