![]() |
#46 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
![]() Hitch |
|
![]() |
![]() |
![]() |
#47 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
|
![]() ![]() Should add a new smilie, Hackers At Work, or something. Quote:
...Interesting, looks like they use Handlebars to auto-generate portions of their CSS, based on what fonts are available, if the language is Japanese (vertical), etc. Heh. Some of the stuff in here is gold: Code:
.calibre > div, .calibre1 > div { position: static !important; } ... /* fix documents that abuse inline-block */ ... /* centering hack to support Calibre-generated vertical centered documents */ ... /* Hide soundtrack <audio> tags from ever showing up */ /* display: none; doesn't seem to actually work for some reason, so hide it another way */ ... Here's the CSS that hides the <aside> of your footnotes: Code:
aside[epub|type~="footnote"] { display: none !important; } Code:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ibooks="http://apple.com/ibooks/html-extensions"> <head> <title>Footnote</title> <style type="text/css"> @namespace ibooks "http://apple.com/ibooks/html-extensions"; body > div:first-child { font-size: 200%%; } body > div:first-child[ibooks|footnoteTitleEnhance="on"] { font-size: 300%%; line-height: 0; } body > div:first-child[ibooks|footnoteTitleEnhance="on"] > span { vertical-align: text-bottom; } </style> </head> <body> <div><span><BKASIDETITLEGOESHERE/></span></div> <div> <BKASIDEHTMLGOESHERE/> </div> </body> </html> So yeah, looks like inlining stuff is the way to go here. Note: This is OSX iBooks, so maybe iOS iBooks works differently, but I kinda doubt it. |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB to HTLM (single page) | obihal | Conversion | 8 | 05-20-2014 01:45 PM |
Online HTML book -> epub: TOC from single file | dancal | Conversion | 0 | 01-27-2014 01:45 PM |
EPUB Formatting Challenge: Embedding blog posts in the flow of story text | Morganucopia | ePub | 18 | 08-02-2013 04:47 PM |
Several xhtml/html to a single epub file help. | clowe1028 | ePub | 3 | 03-21-2010 03:47 AM |
single HTML to ePub with fixed width font | skyfish | Calibre | 8 | 12-10-2009 01:30 PM |