Quote:
Originally Posted by Vakke
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.