View Single Post
Old 08-29-2023, 10:49 PM   #40
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,204
Karma: 169936284
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Vakke View Post
Would you be able to help a noob on how can I use your CSS to modify my ePubs?

I've tried to replace stylesheet.css completely but it doesn't seem to work and I've also tried to inject it from conversion styling but I cannot get it to work.

Is there something clear I'm missing?
Most CSS stylesheets use names for styles which must match the names in the html files. That is if the first paragraphs in a chapter and after section breaks are styled with <p class="fmtx1"> and the remaining paragraphs are styled with <p class="tx"> and your stylesheet uses a naked p for those first paragraphs and .para for subsequent paragraphs, you must either edit the stylesheet or the html files to match those names.

Then we have the ebooks that use p and p + p to handle the same situation and the ones that go in for multiple styles for each paragraph, the ones that wrap multiple divs with styles around everything to really make use of the cascading in cascading style sheets.

What this means is that you must inspect the CSS with the mark 1 eyeball to understand what it is doing and then modify it to what you need.
DNSB is offline   Reply With Quote