Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Why is 'position fixed' “killing” my links in iBooks?

I am doing some tests using the CSS property 'position:fixed' in iBooks. The idea is to have a clickable DIV that remains in place (fixed down the left hand side) as you turn from page to page. When you click the DIV you get another pop up DIV. (Just a standard hide/show thing...)


The positioning side of things is working correctly. And on page 1 the hide/show is working correctly.


However, once you flip to a second page this problem occurs: the clicking no longer works for some reason. I have tried both JavaScript events as well as just a regular HTML anchor, and I get the same result, so this does not appear to be a JavaScript issue. Something seems to happen once you've flipped to another page. The clickaibility of elements (that are position:fixed) is lost.


Can anyone shed any light please? I'd love to get this working...

Posted on Sep 13, 2012 12:30 AM

Reply
2 replies

Dec 12, 2012 8:55 AM in response to SwissTony76

You have probably figured this out, but in case someone else is having the same problem:



I seem to recall seeing somewhere in the ePub specs that "position:fixed;" is unsupported.


If each page is a separate xhtml file then going between pages in the book is like loading different pages in a browser. If you want an element to show up on each page then you will need to have a div (or similar) for it in each xhtml file and give them the same class and then add some css for that class in your style sheet.


.lefttab {

position: absolute;

left: 0;

top: 40px;

etc...

}

Why is 'position fixed' “killing” my links in iBooks?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.