View Single Post
Old 02-06-2013, 12:47 AM   #35
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by _savage View Post
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 View Post
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

Last edited by dgatwood; 02-06-2013 at 12:50 AM.
dgatwood is offline   Reply With Quote