02-17-2015, 07:53 AM | #1 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
FBReader ignores margin-top
I'm using FBReader version 2.2.7 on my MB501 Android phone, running Android 2.3.7 (the latest version it will run).
I notice that it does not seem to honour "margin-top" CSS in ePubs. I use this style: Code:
.noindent { display: block; text-indent: 0; margin-top: 2em; } Is this a bug in FBreader or my styles? Do I actually have to use nbsp paragraphs to make space between paras reliably? |
02-17-2015, 11:55 AM | #2 | |
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Quote:
I recommend using Gitden reader, it's the best one out there in my experience. |
|
Advert | |
|
02-17-2015, 12:36 PM | #3 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
I'll try it though. Sigil and Calibre both say "No errors". Needs Android 4, won't run on my phone. |
|
02-17-2015, 01:08 PM | #5 | |
Addict
Posts: 254
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
|
According to this page: http://fbreader.org/content/book-for...-not-supported, for epubs:
Quote:
|
|
Advert | |
|
02-17-2015, 10:28 PM | #6 | ||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Same with "Flight Crew" in Sigil. And http://jigsaw.w3.org/css-validator/validator Quote:
Code:
.noindent { display: block; text-indent: 0; margin-top: 2em; } .noindent { display: block; text-indent: 0; margin-top: 36px; } .noindent { display: block; text-indent: 0; margin-top: 36pt; } .noindent { display: block; text-indent: 0; margin: 36px 0px 0px 0px; } Doesn't anyone here use FBReader? I sent an email to their support, but no response. They don't seem to have a dedicated forum. Though I think it's a one-man project and it's free, so I cant complain too much. Here's the complete CSS just in case anyone sees some weird interaction. But only "p" should matter, and that has "margin:0". Spoiler:
|
||
02-18-2015, 01:21 AM | #7 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Have you tried padding-top?
|
02-18-2015, 06:01 AM | #8 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
02-18-2015, 06:42 AM | #9 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
02-18-2015, 07:09 AM | #10 |
Guru
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
|
FBReader ignores many things. It uses then only it's own settings. That's no bug, it's a feature of FBReader. If you dont like this behavior you must use another reader.
|
02-18-2015, 10:58 AM | #11 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
I found there is an FBReader group on Google plus:
https://plus.google.com/communities/...99404862312312 Also complaints there about how FBR ignores CSS margins. So it looks like either live with it or use the dumb blank line method. Too bad, it seems to me that it is hardly the most complex kind of formatting. |
02-18-2015, 11:26 AM | #12 |
Guru
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
|
First I used FBReader instead of AdobeViewer. *) Its many ignorings are the reason to use now CoolReader. It has problems too, but not so many as FBReader.
*) I hate AdobeViewer has no way to store my standard fontsize. And the second is the mad pagecounting. |
02-22-2015, 07:52 PM | #13 |
Resident Curmudgeon
Posts: 73,858
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In plain English, FBReader ignores too many things. So the best way to read ePub with Android is with a program that doesn't ignore most of your CSS.
|
02-22-2015, 07:54 PM | #14 |
Resident Curmudgeon
Posts: 73,858
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
ADE's page count is the best out there. It's not mad at all. It's done in a way that does not change based on font size, margins, line height, hyphenation, etc. It's based on 1024 bytes of compressed data = one page.
|
02-22-2015, 10:22 PM | #15 | |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
I've designed the occasional ebook myself, for a small press in the UK and for the MobileRead forum. It's hard to express how irritating it is to design an ebook and make sure it validates, and then get complaints that it doesn't work because the complainant uses an app which sets its own idiosyncratic rules. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS: margin-top and margin | Leonatus | ePub | 16 | 06-16-2014 04:29 AM |
CSS margin instead of margin-top, etc. | icallaci | Conversion | 24 | 10-19-2013 09:52 AM |
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } | cybmole | Conversion | 15 | 02-12-2011 11:57 AM |
calibre ignore margin-top and margin-bottom | bender | Calibre | 2 | 12-11-2009 06:58 AM |
fbreader ignores line breaks | red_dragon | OpenInkpot | 3 | 03-20-2009 08:38 AM |