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, 04: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:	144
Size:	141.5 KB
ID:	163972  
alegriadelarte is offline   Reply With Quote
Old 05-15-2018, 04: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: 33,612
Karma: 10209576
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 online now   Reply With Quote
Advert
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 01:09 PM
change background color? suniram Calibre 8 05-26-2016 02:17 PM
background color/image no margins css? jmd87 ePub 6 06-30-2014 06:35 AM
Change Link2SD background color giosa Sony Reader Dev Corner 0 03-01-2012 07:33 PM
Any epub reader for PC allows me to change text and background color? ttluisa General Discussions 5 05-12-2010 12:04 AM


All times are GMT -4. The time now is 07:14 AM.


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