![]() |
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?
|
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. |
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?
|
Quote:
|
Quote:
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. |
Only if you set your preferences that way.
|
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.
|
Quote:
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. |
Basically I see a lot of these throughout my ePub file:
Quote:
|
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! |
Quote:
I don't know what you mean by this: Quote:
|
Quote:
|
Quote:
Are you a Pages user? Hitch |
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.
|
Quote:
Hitch |
| All times are GMT -4. The time now is 08:07 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.