View Single Post
Old 08-22-2014, 02:32 AM   #14
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 odedta View Post
You are right, the code I posted will not work as the idpf specs says that the use of the viewport attribute is essential in creating a fixed layout ePub in the form of:

PHP Code:
<meta name="viewport" content="width=684, height=1024"/> 
and not:

PHP Code:
<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" /> 
Thanks.
For sure, WebKit (and presumably iBooks) supports viewport height and width attributes. I'd expect other agents to ignore any additional values that they don't understand, but unfortunately, the EPUB specification is really, really lax in defining such behavior, so.... *sigh*

But in any case, those two values are more typically used in full-screen web apps, not books.

For a complete definition of what viewport means to WebKit, see:

https://developer.apple.com/library/...eviewport.html
dgatwood is offline   Reply With Quote