Thread: keep together?
View Single Post
Old 06-11-2010, 01:48 AM   #22
Dellaster
本の虫
Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.Dellaster has a complete set of Star Wars action figures.
 
Dellaster's Avatar
 
Posts: 242
Karma: 344
Join Date: May 2008
Location: USA
Device: Kindle3, DXG, Fire · iPad, iPod
Quote:
Originally Posted by eclecticguy View Post
Not sure how the extra "}" got there! It is not in my file.

This code with simple text does not work on the iPad. But, given the comment on w3schools about safari, firefox and chrome, it looks like WebKit does not support the "avoid" value. So, I think we can conclude that iPad will not support this non-breaking behavior.
My iPad has yet to arrive so I can't check. But I've also read that it doesn't honor page-break-before:always either.

If you absolutely need to keep the caption with the image (or other kind of block) and you don't mind it going to a second page, split the HTML file in two right before the image. All ePub readers go to a new page when moving to a new HTML file.

Be sure to remove any page break code so you don't generate a blank page on readers that do honor them.
Dellaster is offline   Reply With Quote