![]() |
#16 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,592
Karma: 165170966
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
If I remember the reason I went with padding years back, it was a trade off between not collapsing before a scene break which already tend to have spacing which hides the padding and the occasional bottom of the page having a line moved to the next page. I haven't looked at that code in close to a decade according to my last comments in the commented version of my basic stylesheet.
|
![]() |
![]() |
![]() |
#17 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,549
Karma: 142993688
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Now I use a 20% 2px line with space above and below for a section break because it looks better and uses less space. I also use just <p> for most paragraphs as I don't need a class there. Here is the code I use for a section break. CSS: Code:
hr { margin-top: 0.9em; margin-right: 40%; margin-bottom: 0.9em; margin-left: 40%; border-top: 2px solid; } hr + p, p.nonindent { text-indent: 0; } HTML: Code:
<hr/> <p> Last edited by JSWolf; 01-24-2025 at 04:45 PM. |
|
![]() |
![]() |
![]() |
#18 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 511
Karma: 8008008
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
|
Quote:
That said, who knows what rules are being used by various reading software. Years ago, the Onyx Boox didn't collapse margins at all, so the space was the sum of the two margins. |
|
![]() |
![]() |
![]() |
#19 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,449
Karma: 102739837
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
margin-top collapses to zero on first element of a page with many ereaders/apps, but padding-top doesn't.
I'd expect margin bottom on a last element of a page ought to also collapse to zero on same systems, but I've not checked. That would make sense. |
![]() |
![]() |
![]() |
#20 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,549
Karma: 142993688
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But then there are lots of lousy programs for reading eBooks. So I would expect some of them not to collapse a bottom margin at the bottom of the page.
|
![]() |
![]() |
![]() |
#21 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,800
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I use Padding because some readers ignore YOUR margin for theirs.
Sadly, there are just too many reading aps that don't behave the same. I pity the book wranglers that have to deal with all the fallout from unhappy customers because of this crud. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
There's no spacing between paragraphs | Tior500 | Conversion | 1 | 12-02-2019 10:18 AM |
CSS to indent paragraphs and remove spaces | Alda | Sigil | 7 | 06-20-2014 05:36 AM |
expression to remove double spacing between paragraphs | ktj | Calibre | 4 | 07-26-2011 02:38 PM |
Remove spacing between paragraphs - what about div tags ? | NASCARaddicted | Calibre | 5 | 11-07-2009 05:47 AM |
Remove spacing between paragraphs doesn't. | Djehuty | Calibre | 6 | 04-28-2009 04:53 AM |