![]() |
#16 |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Thanks! But the problem is everywhere, not just confined to individual paragraphs.
I have white space between every paragraph in the book. And so far, I have nothing in my stylesheet save for the code that is supposed to eliminate those spaces (but doesn't). |
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Post the entire contents of the CSS file (including the case-sensitive file name of the CSS file). And the beginning of one of the html files (starting with the <html> tag and going straight through and including several paragraphs that are exhibiting the white-space problem).
If every paragraph doesn't have the <br /> at the end of it, then something else must be wrong (either with the CSS itself—and/or how it's linked—or something else in the html). The guessing and the "after looking more closely"s are getting us nowhere. ![]() Also, what are you viewing the ePub with when you see the white space? Is it only in Sigil's Book View or have you opened the ePub in ADE or any other programs? Please tell me that it's not the white space in Code View that you're trying to get rid of. ![]() Last edited by DiapDealer; 06-26-2012 at 08:12 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 | ||
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
@DiapDealer - you got it. Here are the contents of the CSS file, which is called Icelandic_Folk_Legends.css:
Quote:
Quote:
I am viewing the ePub both in Sigil's book view, and in Adobe Digital Editions. And no, it's not the white space in code view that I want to remove. I'm not that much of a novice. ![]() Thanks for your help. |
||
![]() |
![]() |
![]() |
#19 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
p {margin: 0; }
should do it if it appears in Icelandic_Folk_Legends.css and there is no other P in the stylesheet with a margin |
![]() |
![]() |
![]() |
#20 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() And I agree with theducks: Quote:
----- The only thing I would possibly question is that maybe your sample html hasn't been copied directly from Sigil? If it were, I'd expect the initial <?xml?> tag to look something like: Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> Code:
<?xml version="1.0" encoding="utf-8"?> Code:
<?xml version="1.0"?> ![]() Last edited by DiapDealer; 06-26-2012 at 07:32 PM. |
||
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Quote:
I checked a few more files and they all have the <?xml version="1.0"?> In any case, thanks for all your help. It's much appreciated. I'll try your suggestions tomorrow when I have a bit more time. |
|
![]() |
![]() |
![]() |
#22 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Anyway... how about this. Here's an epub that has the exact html code you posted and the simplest of CSS that achieves what you're talking about (or at least it works when I view it Sigil's Book View or in ADE). Compare it to what you have and maybe it will help you find where things are going wonky. ![]() |
|
![]() |
![]() |
![]() |
#23 |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
OK, now I am completely flummoxed. I can't find any difference between the code in the sample you sent and my own document. When I open the sample in Sigil, I don't get the spaces, but on my own document I do.
Did you alter the document in any way?? What's happening (aaaarrrggghhh!!!) UPDATE: Never mind, the p {margin: 0; } did the trick. Whoohoo! ![]() NOW ... is there an easy way to get the first line of each paragraph to indent, but not the first line of each chapter? - Or, if it's too much fuss to leave out the first line, I can do that manually. Thanks so much! Last edited by Alda; 06-27-2012 at 07:40 AM. |
![]() |
![]() |
![]() |
#24 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
You'll have to get rid of the: Code:
<div> <br /> </div> You could also create a special css class and assign it to the first paragraph in every chapter/section. |
|
![]() |
![]() |
![]() |
#25 |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Thanks for the swift reply!
![]() However, I'm not sure what I should be looking at. All I see is the same code as before (see attached). I'm guessing you did something to the stylesheet - am I right? Or where is the code that controls the indents? |
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() Last edited by DiapDealer; 06-27-2012 at 08:16 AM. |
|
![]() |
![]() |
![]() |
#27 |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Ah. I get it now. I need to open the book browser to access the css file.
I'm getting such an education in these forums! ![]() Thanks so much for your invaluable help! |
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#29 |
Zealot
![]() Posts: 104
Karma: 22
Join Date: Jun 2010
Device: none
|
Dang! Here I thought I was out of the woods and that it was smooth sailing from now on. :/
For some reason, the styling code that you so kindly provided in the stylesheet doesn't extend to this file (see attached). Any idea why? |
![]() |
![]() |
![]() |
#30 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If so, that's because for that bit to work, there can't be anything between the <h1> heading and the first <p> tag. That file you showed had an <h2> tag in between them. If an h2 tag will always immediately precede the first p tag, you can simply change the css code to: Code:
h2 + p { margin-top: 2em; text-indent: 0; } Code:
h1 + p, h2 + p { margin-top: 2em; text-indent: 0; } Code:
h1 + p, h2 + p, h3 + p { margin-top: 2em; text-indent: 0; } |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove white space between paragraphs for iPad? | kabloooie | Conversion | 4 | 05-28-2012 05:11 AM |
Removing space between paragraphs in a Mobi book | HarryT | Conversion | 7 | 08-07-2011 10:42 AM |
space between paragraphs | gatorman | Sigil | 3 | 01-07-2011 10:17 AM |
How to reduce indents without "removing space between paragraphs" | Skydog | Calibre | 5 | 06-05-2010 12:58 AM |
Removing unwanted white space | JayLaFunk | Sigil | 4 | 03-19-2010 11:33 AM |