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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-22-2013, 12:01 PM   #1
AshleyLynn
Junior Member
AshleyLynn began at the beginning.
 
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
AshleyLynn is offline   Reply With Quote
Old 04-22-2013, 12:27 PM   #2
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 2,875
Karma: 3893579
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.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 04-22-2013, 04:30 PM   #3
Tex2002ans
Fanatic
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 507
Karma: 392101
Join Date: Jul 2012
Device: Nook
Quote:
Originally Posted by AshleyLynn View Post
Is there a way to give a background color to a paragraph of text?
You would use the background-color CSS attribute: http://www.w3schools.com/cssref/pr_background-color.asp

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):

http://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.
Tex2002ans is offline   Reply With Quote
Old 04-22-2013, 07:33 PM   #4
mrmikel
Book Twiddler
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
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.
mrmikel is offline   Reply With Quote
Old 04-23-2013, 06:42 AM   #5
Aerys
Connoisseur
Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.
 
Aerys's Avatar
 
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.
Aerys is offline   Reply With Quote
Old 04-27-2013, 09:45 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,665
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Aerys View Post
Also take note that using background colors sometimes doesn't render nicely when "NIGHT MODE" is used on the tablet.
Not only that, but they can be distracting in any reading mode.
JSWolf is offline   Reply With Quote
Old 05-01-2013, 01:05 AM   #7
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
Posts: 304
Karma: 1028382
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.
dgatwood is offline   Reply With Quote
Old 05-02-2013, 08:57 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,193
Karma: 4800739
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.
Jellby is offline   Reply With Quote
Reply

Tags
background, color, sidebar

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:58 PM.


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