View Single Post
Old 09-21-2024, 01:02 AM   #26
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,849
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by JSWolf View Post
...
But what do you do with ePub 3.x CSS that the older RMSDK thinks is an error and ignores the entire CSS? That would mean the code you are using is going to be an issue.
That point is not a problem at all. What I do to avoid that with a property that is not recognized by the program and so the entire css is ignored is to employ JAVASCRIPT!!!

All css3 properties are in one css stylesheet and all css2 properties are in another css stylesheet. With javascript I add the stylesheet with the css3 properties to the xhtml files. If the epub is open with an epub2 ereader, then the script is not executed and the css3 properties never are employed (because never is linked to the xhtml files). On the other hand, if the epub is open by an epub3 ereader, the script is executed, the css3 stylesheed is added and the css3 properties overwrite the css2 ones. One of this days I will upload an epub2/3 so you can watch how the code works. The epub3 ereaders will give the best reading experience while epub2 ereaders can give a decent (but not the best) one.
RbnJrg is offline   Reply With Quote