|04-22-2013, 01:01 PM||#1|
Join Date: Apr 2013
Sidebar background color in ePub
I'm new to this forum and haven't quite worked out how to use it yet, so please forgive me if I'm posting this in the incorrect place.
I'm also very new to ePub, so if this is a horribly simple question please be kind.
Is there a way to give a background color to a paragraph of text?
Imagine you're working in an html file and you have a <div> filled with text. You can set a background color in the CSS. Is this possible to do for an ePub, perhaps using the "Tweak" function in Calibre?
Thank you for your time,
|04-22-2013, 01:27 PM||#2|
Join Date: Dec 2009
Location: The Heart of Texas
Device: JetBook Lite, AuraHD, PDA, Eee Transformer
The issue you might run into is the difference between what you can have in a browser
and what an ereading device's rendering software can implement. It will be interesting
to see what this thread generates.
|04-22-2013, 05:30 PM||#3|
Join Date: Jul 2012
I just posted a sample of this a few days ago as a side point in my thread. Here is a direct link to the post (with an image of how it appears, and the div CSS that I use):
Also, keep in mind what colors you choose for the background, certain colors on e-ink devices will lead to unreadable text.
Last edited by Tex2002ans; 04-22-2013 at 05:32 PM.
|04-22-2013, 08:33 PM||#4|
Join Date: Apr 2008
Location: Central Oregon Coast
There is no easy way to be sure which colors will be affected, either. I had a cover with bright orange letters which disappeared when it was converted to grayscale. No amount of fiddling in a graphics program would fix it either.
|04-23-2013, 07:42 AM||#5|
Join Date: Nov 2011
Location: Manila, Philippines
Device: iPad 2 & Nexus 7
Also take note that using background colors sometimes doesn't render nicely when "NIGHT MODE" is used on the tablet.
|04-27-2013, 10:45 PM||#6|
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
|05-01-2013, 02:05 AM||#7|
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
As an exception, one common use for background color is to create a small area of white-on-black text, e.g. in a heading. That usually works fine in night mode, though the background disappears into the page. Using white-on-dark-grey can mitigate this somewhat.
|05-02-2013, 09:57 AM||#8|
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
ePub is supposed to support alternate stylesheets, which means you could have a CSS style for "day mode" and a different one for "night mode" (ePub 3 even specifically uses these names). I know of no reader that actually supports this, though.
|background, color, sidebar|
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Text color and background color almost the same||larrymohr||Kobo Tablets||2||11-20-2011 07:59 PM|
|font color and background||arslonga||ePub||1||08-23-2011 05:23 AM|
|Background color||marcelo2605||Sigil||7||04-05-2011 06:51 PM|
|Background color when reading||swallman||Nook Color & Nook Tablet||2||02-03-2011 02:09 PM|
|Any epub reader for PC allows me to change text and background color?||ttluisa||General Discussions||5||05-12-2010 12:04 AM|