|
|
#16 |
|
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2012
Location: Seattle, USA
Device: Nook
|
Code:
body {
/* widows: 0; */
/* orphans: 0; */
margin: 0;
padding: 0;
border: 0;
}
If I understand you correctly then I should add a "height:100%;" to the single pseudo-fixed-layout page (the one with the dedication, for exampe). This would ensure a correct vertical centering of that page's content: Code:
<body style="height:100%;"> ... </body> Last edited by _savage; 01-25-2013 at 10:29 PM. |
|
|
|
|
|
#17 | |
|
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
![]() Also, you should not be setting the margins to zero on normal, flowing pages. I've seen some readers (Kobo on iOS) break when I do that. YMMV. As a rule, you should avoid styling the HTML and BODY tags (beyond possibly setting fonts) unless you're doing something very unusual, such as the aforementioned special single-page layouts. |
|
|
|
|
|
Enthusiast
|
|
|
|
#18 |
|
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2012
Location: Seattle, USA
Device: Nook
|
Quite the opposite of what JSWolf seems so say :-) I've never had a chance to try the books on Kobo, unfortunately.
|
|
|
|
|
|
#19 | ||
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
Quote:
__________________
|
||
|
|
|
|
|
#20 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
But he's not using them for an incorrect understanding of how they work. Instead of getting things all wrong, it would have been better to help by explaining what widows and orphans actually are.
__________________
|
|
|
|
|
|
#21 | ||
|
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2012
Location: Seattle, USA
Device: Nook
|
Quote:
Back in the days when I used LaTeX quite extensively, I ventured into the type setting field which was quite interesting.Quote:
It doesn't really matter to me on an eReader device, to be honest. This should be a user setting, not an eBook setting. It does matter for printed books though, but that's not what I'm doing here anyway
|
||
|
|
|
|
|
#22 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
__________________
|
|
|
|
|
|
|
#23 |
|
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2012
Location: Seattle, USA
Device: Nook
|
Just when I thought things started to work on an iPad...
I noticed that text flows into an image: Code:
... </p> <div style="width:45%; float:left;"><img ... /></div> <p> ... I thought this could be solved by avoiding widows and orphans, but that didn't change a thing. There was some talk about wrapping the <img> into a <span> but that didn't work either (it's already wrapped in a <div> anyway). Is this a page height issue? Or how do I go about this? |
|
|
|
|
|
#24 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,148
Karma: 2505637
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
What happens if you apply the style to the <img> rather than the <div>?
|
|
|
|
|
|
#25 | |
|
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2012
Location: Seattle, USA
Device: Nook
|
Quote:
|
|
|
|
|
|
|
#26 |
|
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Top margin difference between the paragraph and the div, maybe?
|
|
|
|
|
|
#27 | |
|
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2012
Location: Seattle, USA
Device: Nook
|
Quote:
Code:
... </p> <div style="width:45%; float:left; padding:1em 1em 1em 0;"><img ... /></div> <p> ... However, because the <div> floats left I hoped that the top of the image and the top of the paragraph would line up. As it is now the image is 1em further down. Also, should I used padding or margin here? Thanks |
|
|
|
|
|
|
#28 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 547
Karma: 2264556
Join Date: Dec 2012
Location: Bangkok, Thailand today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
|
Quote:
Hey, I wonder, if everyone STOPPED accommodating the buggies in iBooks with all these workarounds, do you think Apple would get off their A$$le and FIX it?? Sort of like a union strike?? "ePubbers United"!!! ![]()
|
|
|
|
|
|
|
#29 | ||
|
Enthusiast
![]() Posts: 46
Karma: 10
Join Date: Jul 2012
Location: Seattle, USA
Device: Nook
|
Quote:
Quote:
|
||
|
|
|
|
|
#30 | |
|
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 228
Karma: 556000
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EPub validates in Sigil but not in Apple Store & B&N | ralphiedee | Sigil | 8 | 08-08-2012 05:06 PM |
| iBooks: Avoid page breaks within table rows/cells | ckirchho | ePub | 7 | 06-12-2012 03:11 PM |
| ePUB validates ok but still warns error!!!??? | panda6855 | ePub | 5 | 01-12-2011 06:14 PM |
| iPhone iBooks page breaks not working | BartCubbins | Apple Devices | 2 | 09-08-2010 10:25 PM |