Quote:
Originally Posted by _savage
So what am I to do about the floating text issue then? Think up some margin value and hope that iBook gets it right and floats the text correctly? Probably not going to go that way.
|
First, make sure that it's really a bug. Try putting the same content in at the top of an HTML file and see what it does in a browser (e.g. Chrome, Safari, and/or Firefox). Experiment with setting the
@page margins, and the margins for the
html and
body tags to zero and nonzero values when you do so. If you're able to make it behave the same way in a browser as it behaves in iBooks, then the issue is that the upper margin of the floated image is greater than the upper margin of the paragraph, and you need to fix that. If it behaves differently, try adding:
Code:
html {
-webkit-line-box-contain: block inline replaced !important;
line-box-contain: block inline replaced !important;
}
to the style sheet, and if that fixes it in iBooks, let me know, because it will give me more ammunition to push them to fix a bug that I filed.
If that doesn't fix the problem in iBooks *and* it doesn't behave that way in a browser, then please file a bug with Apple at bugreport.apple.com and post the bug number or PM me. I'd be interested to find out what the underlying issue is.
Quote:
Originally Posted by _savage
dgatwood: Uh, which thread is that?
|
You mean where I posted a big giant list of known bugs? It's not a thread. It's on the wiki site:
https://wiki.mobileread.com/wiki/EPub#CSS_Tips