![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
Black background for cover image. Is it possible?
I'm trying to setup covers for my mobi files for my Kindle 3 and can't quite seem to get them to look the way that I want. I'm thinking what I'm doing is a limit to the mobi standard or to the Kindle or both.
I want have the cover image display on black background so that they show up better but I don't want to edit the image itself. I set the background color and it looks great in epub but, when I convert to mobi, the background color is lost, or at least isn't displayed properly. Here's the code I've tried successfully in epub: Code:
@page {padding: 0pt; margin:0pt} body { text-align: center; padding:0pt; margin: 0pt; } div { margin: 0pt; padding: 0pt; background-color: #000007 } img.sgc-1 {height: 100%} </style> </head> <body> <div><img alt="cover" class="sgc-1" src="../Images/cover.jpg" /></div> </body> </html> Does anyone have any ideas if this is possible and, if so, how I would go about it? 'cause what I'm tryin' just ain't a workin' Thanks in advance. - Byron |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
Mobi format does not do CSS, per se. I believe that tools have to convert the css and html into tags that mobi format supports (like old-fashioned HTML before CSS). I don't see anything like a background color in the supported tags list for Mobipocket (http://www.mobipocket.com/dev/articl...TagRef_OEB.htm). You might try making the image itself having a wide black border, and just use it that way.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
If you add a black border so that it appears the same way that it would if on a black background (e.g. put the cover part on a layer that is all black, in a larger size, and center the layer with the cover image), in a new copy of the image (so you don't lose the original), there should be no practical difference in appearance.
|
![]() |
![]() |
![]() |
#5 |
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
I'm afraid the Kindle doesn't support background colours, except for very limited support inside individual table cells, but since the Kindle only has very limited support for tables, using a table just to get a background colour is generally not a good idea.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
No one mentioned tables. I was speaking about image editing. The original post was using CSS to set a background color in an img tag.
|
![]() |
![]() |
![]() |
#7 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
Quote:
- Byron |
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
OK, I guess I misunderstood. Modifying the image is the only way I know of that will work in .mobi.
|
![]() |
![]() |
![]() |
#9 |
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
I was agreeing with you Susan. I only referred to tables in relation to my statement that the Kindle doesn't support background colours in the interest of accuracy, since in fact the Kindle does have limited support for background colour inside table cells, but then qualified that by suggesting it would be a bad idea to put something inside a table simply in order to get a contrasting background colour. That wasn't aimed at you - just a general comment, that's all.
![]() |
![]() |
![]() |
![]() |
#10 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
Thanks guys. I think I'm going to just leave things as they are for now. At least I know not to waste anymore time trying to figure out something mobi can't do.
I appreciate your help. - Byron |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Background image | djrulz | Kindle Formats | 1 | 03-29-2011 04:51 PM |
Black Background | Ekdog | Amazon Kindle | 2 | 01-17-2011 08:12 AM |
black background, white foreground | juardo | 0 | 08-11-2010 01:49 PM | |
White Text on Black Background | robogeek | Which one should I buy? | 6 | 07-20-2010 07:37 PM |
css, non-repeating background image | ckirchho | ePub | 3 | 06-26-2009 04:35 AM |