Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2020, 04:39 PM   #1
2scre
Zealot
2scre began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
how do you get rid of white background

I copied and pasted a long text into Sigil and it somehow ended up with white background for the text. (Looks like white highlight when I try to read on a e-reader app). How do you get rid of it?
2scre is offline   Reply With Quote
Old 12-05-2020, 05:10 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Not quite enough info. What did you copy from, and what option did you select when you pasted into Sigil's Code View?

What OS are you using and what version of Sigil are you using?

Sigil doesn't typically have a preference (or a default) for background color--other than darkmode and lightmode presentations. CSS controls what background colors are displayed for your epub, not Sigil.

Last edited by DiapDealer; 12-05-2020 at 05:12 PM.
DiapDealer is online now   Reply With Quote
Old 12-05-2020, 05:46 PM   #3
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
We're talking about the reading experience, not the appearance of the Sigil editing window? Had you otherwise set the background colour of the book to something other than white?
exaltedwombat is offline   Reply With Quote
Old 12-05-2020, 05:53 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by exaltedwombat View Post
We're talking about the reading experience, not the appearance of the Sigil editing window? Had you otherwise set the background colour of the book to something other than white?
I would expect a white background too, if nothing was done with css to change it to something else. Perhaps the OP is using the Sigil dark theme (including for Preview) and assuming any epubs created will be white text on a black background when saved and viewed in an ereading app?
DiapDealer is online now   Reply With Quote
Old 12-05-2020, 06:48 PM   #5
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by DiapDealer View Post
Perhaps the OP is using the Sigil dark theme (including for Preview) and assuming any epubs created will be white text on a black background when saved and viewed in an ereading app?

Does Dark Mode get to distort the reality of Preview then? I sort of see how that would be popular among lovers of DM, though a bit confusing.
exaltedwombat is offline   Reply With Quote
Old 12-05-2020, 06:56 PM   #6
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Only if you set your preferences that way.
KevinH is online now   Reply With Quote
Old 12-05-2020, 07:26 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Yes. As Kevin said, you have to consciously choose to allow Preview to override the default foreground/background colors in dark mode. With the default settings, dark mode has no effect on Preview's rendering of the epub.

Last edited by DiapDealer; 12-05-2020 at 07:30 PM.
DiapDealer is online now   Reply With Quote
Old 12-06-2020, 01:35 PM   #8
2scre
Zealot
2scre began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
Quote:
Originally Posted by exaltedwombat View Post
We're talking about the reading experience, not the appearance of the Sigil editing window? Had you otherwise set the background colour of the book to something other than white?
yes, reading experience in my e-reader app, not in Sigil.

I didn't set the background color, but when I copied the text probably it copied the background color of the browser (which happens to be white) together with the text.

What happens is, the background color of the e-reader that I'm trying to read in will only show at the edge of the book and the text will be surrounded by white highlight, so that I can't go completely dark mode like I can on other books.

I was wondering how to edit the CSS so that the white higlight will be gone from the whole text.
2scre is offline   Reply With Quote
Old 12-07-2020, 02:44 PM   #9
2scre
Zealot
2scre began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
Basically I see a lot of these throughout my ePub file:

Quote:
<br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12.96px; background-color: rgb(255, 255, 255);"
So to get rid of the background color how should I go about doing this?
2scre is offline   Reply With Quote
Old 12-07-2020, 03:20 PM   #10
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Well, an obvious thing to try would be a search for "background-color: rgb(255, 255, 255);" replacing it with an empty string. In the stylesheet as well as the chapter files. The example you give, styling a linebreak, is not in itself going to be the culprit though!

Work on a copy of the EPUB file in case it goes horribly wrong!
exaltedwombat is offline   Reply With Quote
Old 12-07-2020, 04:49 PM   #11
2scre
Zealot
2scre began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
Quote:
Well, an obvious thing to try would be a search for "background-color: rgb(255, 255, 255);" replacing it with an empty string.
Thank you. This worked.

I don't know what you mean by this:
Quote:
The example you give, styling a linebreak, is not in itself going to be the culprit though!
2scre is offline   Reply With Quote
Old 12-07-2020, 09:13 PM   #12
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by 2scre View Post
Thank you. This worked.

I don't know what you mean by this:
BR is a HTML way of starting a New line. In itself it display NO CHARACTERS, therefor has no color.
theducks is offline   Reply With Quote
Old 12-11-2020, 03:26 PM   #13
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by 2scre View Post
Basically I see a lot of these throughout my ePub file:



So to get rid of the background color how should I go about doing this?
Not sure of the genesis, but I see this ALL the time from Mac-based files, both Pages (especially) and Word4Mac files created from those selfsame Pages files.

Are you a Pages user?

Hitch
Hitch is offline   Reply With Quote
Old 12-12-2020, 09:01 AM   #14
2scre
Zealot
2scre began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Oct 2017
Device: iPhone
I am a Mac user, but Pages was not involved. I pasted it into Gmail as a draft first and then copied it from gmail to Sigil.
2scre is offline   Reply With Quote
Old 12-12-2020, 11:31 AM   #15
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by 2scre View Post
I am a Mac user, but Pages was not involved. I pasted it into Gmail as a draft first and then copied it from gmail to Sigil.
Okay, but where did it come from, before you pasted it into GMail? Where did you type it, or...? Are you saying that you typed your book into the email program? I mean, pasting implies that it existed someplace else, first and you copy-pasted it, yes? So...where was it living prior to Gmail? (Do you mean Google Docs?)

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
White Background KyBunnies Calibre Companion 13 08-05-2017 03:34 AM
How to Get Rid of Tan Background in Calibre Companion pmatch1104 Devices 3 01-19-2015 09:55 AM
How to get rid of the grey background on news from taz.de? MacLake Recipes 4 02-02-2012 06:45 AM
White text on white background in dialog boxes Kikker123 Kobo Tablets 1 12-24-2011 06:20 PM
calibre 0.7.49 and white background gmarco Conversion 1 03-13-2011 03:26 AM


All times are GMT -4. The time now is 11:34 AM.


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