View Single Post
Old 03-25-2020, 09:19 PM   #4
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Quote:
Originally Posted by carmenchu View Post
Is there that I have my preferences set:
'override all book colors' ='never', 'color scheme' = 'system' (I just want a background color when the book asks for it).
I ran into this a while ago but got distracted and left it. Just did some tests now. I find that if I use a background-color rule in a <div>, for example a side note, it works in both the editor preview and the viewer. But if I put it in the <body> style, it shows in the editor preview but not the viewer.

(Same settings as yours, Calibre 4.12 on Ubuntu.)

So you could wrap each whole file with a suitable <div> to get the effect, but it would be better if it worked in the <body> style.
retiredbiker is offline   Reply With Quote