Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 05-14-2018, 03:44 AM   #1
alegriadelarte
Junior Member
alegriadelarte began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2018
Device: epub
How to css change background color of an epub?

Hi,

In the stylesheet.css, I put

html, body{ background-color: rgb(230, 230, 230); }

But the surrounding has still some white color, how to change it?
Attached Thumbnails
Click image for larger version

Name:	Calibre background.PNG
Views:	66
Size:	141.5 KB
ID:	163972  
alegriadelarte is offline   Reply With Quote
Advert
Old 05-15-2018, 03:37 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 32,890
Karma: 10034422
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot. The surroundings are page amrgins and they are not under the control of the epub. SOme epub renderers will render them the same color as the current html background color, some will render them using a fixed color, etc.
kovidgoyal is offline   Reply With Quote
Reply

Tags
background, css, ebook, epub

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Css for Calibre viewer background-color Cjammi Calibre 5 03-10-2017 12:09 PM
change background color? suniram Calibre 8 05-26-2016 01:17 PM
background color/image no margins css? jmd87 ePub 6 06-30-2014 05:35 AM
Change Link2SD background color giosa Sony Reader Dev Corner 0 03-01-2012 06:33 PM
Any epub reader for PC allows me to change text and background color? ttluisa General Discussions 5 05-11-2010 11:04 PM


All times are GMT -4. The time now is 04:21 PM.


MobileRead.com is a privately owned, operated and funded community.