Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I want to create a epub and display in Ibooks, this epub have a fixed layout but is dynamically generated, the result may have varying dimensions, but in ibooks needs a viewport with static width and height, for example:

<meta content="width=768, height=576" name="viewport"/>

Ibooks only show the content shown in the viewport

Also, some page have dynamic content and this can grow the size

i tried device-height or 100% and didn't work

Right now i put all content of the page in a DIV with this style:

.epub_content, body > nav {
    width: 740px;
    max-width: 740px;
    min-width: 740px;
    height: 536px;
    max-height: 536px;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 0px;

This work fine and i can see all content but anchors didnt works

Anyone know how to make scrollable page in epub with fixed layout?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.