|  09-15-2015, 08:46 AM | #1 | 
| Age improves with wine.            Posts: 596 Karma: 95229 Join Date: Nov 2014 Device: Kindle Oasis, Kobo Libra II | 
				
				Float images & tables?
			 
			
			I'll probably be told off for asking another formatting question here... but here goes anyway. Is there a way to float a block element in a reflowable book (e.g. a table, or a div containing an image and caption) so that it will be displayed at the top (or bottom) of a page, and so that text will be flowed around it to avoid having a huge blank area on the page before? | 
|   |   | 
|  09-15-2015, 09:27 AM | #2 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Moderator Notice Not a Calibre question. Moving to the better place for format questions | 
|   |   | 
| Advert | |
|  | 
|  09-15-2015, 09:43 AM | #3 | 
| Age improves with wine.            Posts: 596 Karma: 95229 Join Date: Nov 2014 Device: Kindle Oasis, Kobo Libra II | 
			
			Why ePUB, specifically? I'd be interested in a solution for any reflowable format, actually...
		 | 
|   |   | 
|  09-15-2015, 09:46 AM | #4 | 
| Age improves with wine.            Posts: 596 Karma: 95229 Join Date: Nov 2014 Device: Kindle Oasis, Kobo Libra II | 
			
			OK, I've spammed a copy into every other relevant forum under E-book formats.
		 | 
|   |   | 
|  09-15-2015, 11:32 AM | #5 | 
| The Grand Mouse 高貴的老鼠            Posts: 74,432 Karma: 318076944 Join Date: Jul 2007 Location: Norfolk, England Device: Kindle Oasis | |
|   |   | 
| Advert | |
|  | 
|  09-15-2015, 12:13 PM | #6 | |
| Interested in the matter            Posts: 421 Karma: 426094 Join Date: Dec 2011 Location: Spain, south coast Device: Pocketbook InkPad 3 | Quote: 
   | |
|   |   | 
|  09-16-2015, 05:29 AM | #7 | |
| The Grand Mouse 高貴的老鼠            Posts: 74,432 Karma: 318076944 Join Date: Jul 2007 Location: Norfolk, England Device: Kindle Oasis | Quote: 
 But perhaps there's something in ePub3 CSS. Anyone know? | |
|   |   | 
|  09-16-2015, 12:09 PM | #8 | 
| Grand Sorcerer            Posts: 11,470 Karma: 13095790 Join Date: Aug 2007 Location: Grass Valley, CA Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7 | 
			
			I believe the solution is called sidebars. See our wiki https://wiki.mobileread.com/wiki/Example_ePub#sidebars Dale | 
|   |   | 
|  09-16-2015, 12:46 PM | #9 | |
| Interested in the matter            Posts: 421 Karma: 426094 Join Date: Dec 2011 Location: Spain, south coast Device: Pocketbook InkPad 3 | Quote: 
 But that does not solve the problem... | |
|   |   | 
|  09-16-2015, 01:41 PM | #10 | |
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | Quote: 
 About its implementation status I know nothing, but Prince supports moving floats in the page too. | |
|   |   | 
|  09-16-2015, 02:14 PM | #11 | 
| Grand Sorcerer            Posts: 11,470 Karma: 13095790 Join Date: Aug 2007 Location: Grass Valley, CA Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7 | 
			
			Yes, sometimes it can help but you are right that it does not always do the job. There is no way to solve the problem in ePub for all cases. There is no float vertical capability as you might do in creating a hard book to delay the image to the next page or place it earlier than you had originally intended. We need a float top or float bottom to do this and you cannot tell the reader to delay the display of an object until the next page. It would be a nice feature but the people designing the standard seem not to be interested in things needed by real books. Dale | 
|   |   | 
|  09-18-2015, 07:17 AM | #12 | 
| Age improves with wine.            Posts: 596 Karma: 95229 Join Date: Nov 2014 Device: Kindle Oasis, Kobo Libra II | 
			
			There are pages, certainly; that's what page-break-before and page-break-after are there to control in the CSS. In the absence of these, the page breaks occur in unpredictable places depending on viewer size, font size and so on, which can vary. So don't you think it would be useful to be able to tell the viewer not only where hard page breaks should go but that a block should float to the top of the viewer's display page when it is displayed?
		 | 
|   |   | 
|  09-18-2015, 07:19 AM | #13 | 
| Age improves with wine.            Posts: 596 Karma: 95229 Join Date: Nov 2014 Device: Kindle Oasis, Kobo Libra II | |
|   |   | 
|  09-18-2015, 07:26 AM | #14 | 
| Age improves with wine.            Posts: 596 Karma: 95229 Join Date: Nov 2014 Device: Kindle Oasis, Kobo Libra II | |
|   |   | 
|  09-18-2015, 09:36 AM | #15 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 Calibre Editor/Sigil is NOT a General drop point, either. Those are just Tools that make changes easier. EPUB is one of the best starting points for most conversions. | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| How to Control Fonts in SVG Images of Charts and Tables? | MikeWV | ePub | 37 | 06-18-2014 10:34 AM | 
| A problem with images inside tables | RbnJrg | ePub | 2 | 10-28-2013 09:09 PM | 
| The operator >> is undefined for the argument type(s) float, float | twobob | Kindle Developer's Corner | 10 | 09-05-2012 12:50 PM | 
| Q: Tables, images, and word-wrap | AndrewH | Workshop | 2 | 12-22-2010 02:34 AM | 
| PDF conversion which respects images/tables? | fivebells | Amazon Kindle | 9 | 12-19-2010 11:18 AM |