11-23-2017, 08:32 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2017
Device: Kindle Paperwhite
|
Calibre default CSS to <body>
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? |
11-23-2017, 09:26 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
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 | |
|
11-23-2017, 10:56 PM | #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.
|
11-23-2017, 11:55 PM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Every software in existence imposes choices on the user. The very act oc creating software means imposing choices on the user.
|
11-24-2017, 01:06 AM | #5 |
Unicycle Daredevil
Posts: 13,923
Karma: 185041098
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 | |
|
11-24-2017, 04:12 AM | #6 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
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... |
11-24-2017, 05:32 AM | #7 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
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?
|
11-24-2017, 05:34 AM | #8 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
11-24-2017, 06:12 AM | #9 | ||
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Quote:
Quote:
Well, not everybody uses a Kobo. |
||
11-24-2017, 06:46 AM | #10 | ||
US Navy, Retired
Posts: 9,864
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-24-2017, 09:52 AM | #11 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
11-24-2017, 10:46 AM | #12 |
Unicycle Daredevil
Posts: 13,923
Karma: 185041098
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
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
In CSS, * or body? | Arios | ePub | 10 | 11-03-2015 10:15 AM |
CBR to ePub - Suppress Calibre Default CSS | RZetlin | Conversion | 2 | 07-31-2014 10:21 PM |
CSS <body> vs. <p> question | Amalthia | Conversion | 7 | 01-21-2014 01:50 AM |
force an addition to main body css ? | cybmole | Conversion | 5 | 01-17-2014 02:35 AM |
Adding body style to Extra CSS does nothing | Barty | Conversion | 7 | 10-23-2013 11:06 PM |