![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Apr 2013
Device: none
|
Sidebar background color in ePub
Hello everybody.
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, Ashley |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
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. Luck; Ken |
![]() |
![]() |
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
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): https://www.mobileread.com/forums/sho...25&postcount=9 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 04:32 PM. |
|
![]() |
![]() |
![]() |
#4 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
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.
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 51
Karma: 29994
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.
|
![]() |
![]() |
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,490
Karma: 134254362
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#7 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
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.
|
![]() |
![]() |
![]() |
#8 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,524
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
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.
|
![]() |
![]() |
![]() |
Tags |
background, color, sidebar |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text color and background color almost the same | larrymohr | Kobo Tablets | 2 | 11-20-2011 06:59 PM |
font color and background | arslonga | ePub | 1 | 08-23-2011 04:23 AM |
Background color | marcelo2605 | Sigil | 7 | 04-05-2011 05:51 PM |
Background color when reading | swallman | Nook Color & Nook Tablet | 2 | 02-03-2011 01:09 PM |
Any epub reader for PC allows me to change text and background color? | ttluisa | General Discussions | 5 | 05-11-2010 11:04 PM |