![]() |
#16 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Of course, thank you!
|
![]() |
![]() |
![]() |
#17 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,303
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Code:
p {margin:0; text-indent:1.2em} p.break {margin-top:1em; text-indent:0} <p>normal paragraph</p> <p>normal paragraph</p> <p.break>no indent with a space above it paragraph</p> <p>normal paragraph</p> <p>normal paragraph</p> |
|
![]() |
![]() |
![]() |
#18 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
I tried your suggestion. The most common paragraphs have a margin:
Code:
p { text-indent: 0; line-height: normal; margin-bottom: 1em; } Code:
p.nomargin { margin-bottom: 0; margin-top: 0; } Code:
<p.nomargin>blablabla</p> <p.nomargin>blablabla</p> } |
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You would be better of reversing your thinking. The paragraphs with a margin are the strange ones, not the other paragraphs. So, give the paragraphs with a margin a class and not the others. So take the example of Turtle91 (with a small correction: <p.break> should be <p class="break">) and it will produce the attached example (I changed the text).
|
![]() |
![]() |
![]() |
#20 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Yes, I know Toxaris, thank you for your trouble. It's not my thinking that needs reversing, its my father's thinking when he wrote this messed up manuscript ;-) I tried your way before, but the document just got messed op because it is so inconsistent. And because most paragraphs had a margin anyway, I decided to make that the standard p. There are only a few paragraphs that are without the margin, so I just did those manually.
It's looking more or less ok now, I just hope my father won't notice the p's I missed somehow. He'll be the only one reading the epub anyway, on the reader I got him for his birthday. |
![]() |
![]() |
![]() |
#21 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Children always blame their parents. It's some comfort to know that, in time, the grandchildren will do the same to THEIR parents.
|
![]() |
![]() |
![]() |
#22 |
Village idiot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
You're absolutely right
![]() |
![]() |
![]() |
![]() |
#23 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,896
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Your code would be good if the you had set
P { display: block; margin: 0 ; /* all 4 edges */ } somewhere beforehand display: block breaks the inheritance cascade and starts over (from the outside layer) Think 'Box Model' |
![]() |
![]() |
![]() |
#24 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,057
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have a rather big dislike bordering on hate when I see the margin shorthand. I prefer it to be the long way because that just works better for modifying eBooks when the publisher screwed something up which is usually.
|
![]() |
![]() |
![]() |
#25 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Stop being daft. You're going to give yourself a stroke or a heart attack. Hitch |
|
![]() |
![]() |
![]() |
#26 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,303
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
![]() |
![]() |
![]() |
#27 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,057
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#28 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
#29 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,057
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#30 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem: Merge two ebooks paragraph by paragraph... | akayacik80 | Workshop | 5 | 09-23-2014 09:05 AM |
Paragraph breaks when removing margins | Canorka | Conversion | 3 | 03-30-2012 02:00 AM |
Preference: Paragraph indent or a little paragraph spacing? | 1611mac | General Discussions | 48 | 11-11-2011 12:43 AM |
Paragraph question | shrktank | Calibre | 2 | 11-29-2009 12:07 AM |
Calibre collapses paragraph margins - why? | kiwik | Calibre | 2 | 01-08-2009 11:47 PM |