![]() |
#1 | ||
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Apr 2013
Device: Pocketbook Touch
|
![]()
Hello all,
I have trouble with my ebook reader when any padding information is included in the epub document. WHen "padding" is included it ignores any "margin" information. Unfortunately most of my epub's include "padding-top/bottom:0;" in .calbre and so all the margins are shown as 0. Drives me crazy ![]() So I thought to reconvert all my epubs to epub using calibre with the style info "padding" option activated. Ok, then it removes "padding-top/bottom:0;" in .calibre but includes it in .calibre1 which is used for standard formatting. Great ![]() Original: Quote:
Quote:
Thanks for any help... Mart PS: I tried "Other CSS options" already, even tried different output format (at least: Generic, Pocketbook 900, Sony xxx 300). I try to avoid changing all my ebooks by hand, that would be something for next winter... |
||
![]() |
![]() |
![]() |
#2 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
One simple way is to edit the stylesheet/s using the Tweak Book function in calibre. You don't need to do a conversion first, but be sure to take a backup of your book before tweaking it. I realise that this is 'changing by hand' but it is quite straightforward. |
|
![]() |
![]() |
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Since you obviously are aware of what a stylesheet can do, I would use Agama's advice.
I also find it odd that a device FAILS on valid styling. Ignore ![]() Code:
padding: 0 |
![]() |
![]() |
![]() |
#4 | ||
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Apr 2013
Device: Pocketbook Touch
|
Quote:
I'll ask in the pocketbook forum later. Quote:
![]() Code:
padding-top: 0; margin-top:0.5em; Based on my (limited) stylesheet knowledge that should not happen. Thanks for your help. |
||
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Perhaps you could make a one page ePub which demonstrates the problem, with screen shots showing how your reading displays margins without padding specified and then with padding specified. I'm just wondering if a bit more context may help give some insight into what's going on here - hence posting a full ePub rather than just code snippets.
I'm still surprised that any reader would mess up the margin style simply because of the presence of padding. (You can generate some random paragraph text from http://www.lipsum.com/) Last edited by Agama; 04-25-2013 at 07:55 AM. |
![]() |
![]() |
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
![]() Strange behaviour The box model (section 8 of CSS2) layers: Margin border padding content are you sure that you are not introducing a CSS error. Adobe (MRSDK) is famous for tossing the whole CSS if it runs into many errors. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A New Epub Creator: txt to epub, word to epub | oxen | ePub | 120 | 07-22-2019 02:28 PM |
Weird Table-padding after ePub conversion using Calibre | kris33 | Kindle Formats | 2 | 01-13-2012 10:00 PM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |
epub to mobi - padding right not working | 1611mac | Conversion | 3 | 11-12-2011 04:10 PM |
epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 09:37 AM |