![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2017
Device: Kindle Paperwhite
|
![]()
Converting from EPUB to AZW3 Calibre is generating the following CSS to the <body>
Code:
.calibre { margin-bottom: 0; margin-top: 0; padding-left: 0; padding-right: 0 } What else could I do to prevent this to happen? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,069
Karma: 19561336
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Nothing, body margins are always set to zero so they dont interfere with page margins. You dont want body margins in an ebook, they make no sense.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2017
Device: Kindle Paperwhite
|
Please, don't get me wrong, but I just can't get used with a piece of software imposing its patterns. It sounds a kind of dictatorship. I just think that the choice should be let to user.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 42,069
Karma: 19561336
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
![]() |
![]() |
![]() |
![]() |
#5 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,902
Karma: 182895564
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
Well, last time I looked (but it's been a while, so things may have changed) it did make sense to set the left and right margins as body margins, because setting them as page margins made ADE page numbers collide with the text.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 774
Karma: 280422
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
I always start every css with:
Code:
* { margin: 0; padding: 0; } Although I never use page numbers, I always DO use a body margin of 1% to keep the text from colliding to the e-reader display sides, hence allow a better reading experience. Further margin needs are set, where appropriate, with <p>, <blockquote>, etc. Just my 2cts... |
![]() |
![]() |
![]() |
#7 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69,191
Karma: 116053285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why do you read with ADE right margin page numbers turned on?
|
![]() |
![]() |
![]() |
#8 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69,191
Karma: 116053285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | ||
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 774
Karma: 280422
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
Quote:
Quote:
Well, not everybody uses a Kobo. |
||
![]() |
![]() |
![]() |
#10 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,854
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Code:
.calibre { display: block; font-size: 1.25em; line-height: 1.2; margin-bottom: 0; margin-left: 5pt; margin-right: 5pt; margin-top: 0; padding-left: 0; padding-right: 0; text-align: left; } Code:
@page { margin-bottom: 5pt; margin-top: 5pt; } Something seems inconsistent. |
||
![]() |
![]() |
![]() |
#11 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,225
Karma: 47704480
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#12 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,902
Karma: 182895564
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
In CSS, * or body? | Arios | ePub | 10 | 11-03-2015 11:15 AM |
CBR to ePub - Suppress Calibre Default CSS | RZetlin | Conversion | 2 | 07-31-2014 11:21 PM |
CSS <body> vs. <p> question | Amalthia | Conversion | 7 | 01-21-2014 02:50 AM |
force an addition to main body css ? | cybmole | Conversion | 5 | 01-17-2014 03:35 AM |
Adding body style to Extra CSS does nothing | Barty | Conversion | 7 | 10-24-2013 12:06 AM |