Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 07-12-2011, 12:00 PM   #1
JDawg
Junior Member
JDawg began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2011
Device: Kindle
Gray Boxes in .mobi?

Hi all,
To set off a text book in an ebook that I am creating, I put a background-color style in the .xhtml file of that chapter. The .xhtml file is part of an .epub file which displays the gray text box fine, but when I convert the .epub to .mobi the gray background of the text disappears. Any help on getting my code to work in the mobi file as well would be great, thanks.
JDawg is offline   Reply With Quote
Old 07-12-2011, 12:02 PM   #2
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: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
It won't work. It's not supported in Mobipocket.
JSWolf is offline   Reply With Quote
Advert
Old 07-12-2011, 12:31 PM   #3
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
Depending on the reader's screen, it might be hard to read, even in ePub.
susan_cassidy is offline   Reply With Quote
Old 07-14-2011, 04:27 PM   #4
haylocki
Member
haylocki began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2010
Device: Kindle 2i
Hi,

if you want to have a grey background for the text then you need to use a table.

just create a one cell table, put the text into the cell and then set the background colour.

The limitation is that all the text in the cell must fit on one page. If the text is too long for one page, the Kindle will just ignore the extra text.

Cheers, Ian
haylocki is offline   Reply With Quote
Old 07-14-2011, 05:03 PM   #5
emalvick
Groupie
emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!emalvick , Klaatu Barada Niktu!
 
Posts: 166
Karma: 5358
Join Date: Aug 2010
Location: Davis, CA
Device: Kindle 3
Quote:
Originally Posted by haylocki View Post
Hi,

if you want to have a grey background for the text then you need to use a table.

just create a one cell table, put the text into the cell and then set the background colour.

The limitation is that all the text in the cell must fit on one page. If the text is too long for one page, the Kindle will just ignore the extra text.

Cheers, Ian
To further complicate the above, you have to be able to accommodate the potential text sizes users might choose.
emalvick is offline   Reply With Quote
Advert
Old 07-14-2011, 07:18 PM   #6
osnova
Kindler of the Flame
osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.osnova ought to be getting tired of karma fortunes by now.
 
osnova's Avatar
 
Posts: 582
Karma: 646016
Join Date: Oct 2009
Location: US of A
Device: K DX,3,KT,KP,KF, KFHD; Nook C, PRS600, iPad, Xoom, N900, N810, Zaurus
Don't do it. You will have too many complaints.
osnova is offline   Reply With Quote
Old 07-14-2011, 09:57 PM   #7
alansplace
Grand Sorcerer
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 5,886
Karma: 464403178
Join Date: Feb 2010
Location: 33.9388° N, 117.2716° W
Device: Kindles K-2, K-KB, PW 1 & 2, Voyage, Fire 2, 5 & HD 8, Surface 3, iPad
Cool you got that right

Quote:
Originally Posted by osnova View Post
Don't do it. You will have too many complaints.
boy do you have that right! the most common complaint that i heard about both the kindle 1 & the kindle 2 was that the contrast was not good because the background was too gray. this is just not a good idea.
alansplace is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tinted backgrounds boxes - epub and Mobi DanBenton Kindle Formats 1 01-28-2011 08:22 AM
MobiPocket Creator -> PDF to MOBI -> Gray Font on Kindle 3 SunLight Kindle Formats 3 01-04-2011 02:46 PM
MobiPocket Creator -> PDF to MOBI -> Gray Font on Kindle SunLight Amazon Kindle 3 01-02-2011 01:52 PM
Boxes and boxes of books Elsi Lounge 14 07-22-2008 08:04 PM


All times are GMT -4. The time now is 07:39 PM.


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