2 Replies Latest reply on Dec 8, 2013 5:47 PM by ryota-buuai

    epub : absolute position style in Digital Editions

    ryota-buuai

      Hello,

       

      I am developer, working for epub content and using Digital Editions to review generated epub file.

       

      In one of our epub contains <div> tag like below:

       

      <div id="top">

        <img src="../image/001.jpg"/>

        <div style="position:absolute; z-index: 1; top: 0px; left: 0px; font-size:x-large">Put words at 0px-0px</div>

        <div style="position:absolute; z-index: 1; top: 200px; left: 100px; font-size:x-large">Put words at 200px-100px</div>

        <div style="position:absolute; z-index: 1; top: 70%; left: 35%; font-size:small">Put words at 70%-35%</div>

      </div>

       

      I am trying to put the words onto the image file and it looks ok when checking it in other epub viewer but looks like DE ignoring these style attrbs: position, top, left.. and put these inner <div>s on next page.

       

       

      Is there any solution for this?

       

      just fyi, I set 'pre-paginated' on the content opf file and viewport metadata in the html file.

       

       

      Thanks,
      KT

        • 1. Re: epub : absolute position style in Digital Editions
          sjpt Level 4

          Can't help directly I am afraid.

           

          Just a comment that you should test on both v2.0/2.0.1 and on the older more reliable v1.7.2 (link below). 

          They use quite different rendering technologies, and probably very different rendering engines.

          Many people use v1.7.2: either because they haven't upgraded, or because (like me) they have hit one of the huge number of bugs in v2.0 and can't use it.  (In my case the V2 bug working with Sony ereader and Overdrive library books.)

           

          ~~~

          ~~~~~~~~~

          There are lots of bugs in ADE2.0 (and 2.0.1).  Try replacing ADE2.0 with the older but more reliable v1.7.2.

          (You can have them both installed at once if you like.)

          Version 1.7.2, it is a little difficult to find, available on Adobe site for Windows and for Mac.

          http://helpx.adobe.com/digital-editions/kb/cant-install-digital-editions.html

          The forum software is sometimes corrupting the link above.  There shouldn't be a blank in 'editio ns.html'.  The following redirects to the same page: http://tinyurl.com/diged172

           

           

          Some people have found ADE trying to upgrade automatically. 

          It appears (not 100% sure) that if you install ADE2.0 as a new install (not as an upgrade) that your 1.7.2 will continue to run.

          Probably best to say no if 2.0.x installation asks if you want to migrate your library.

          1 person found this helpful
          • 2. Re: epub : absolute position style in Digital Editions
            ryota-buuai Level 1

            Thanks, sjpt.

             

            I just installed 1.7.2 and view the test contents. But it still showing the <div>s with words on the next page, not on the image on the page.

             

            I think it is an issue which will be solved in later release as epub spec says it can be used on fixed layout(pre-paginated).

             

            Is there anyone who had similar issue before and solution?

             

            Regards,

            Kohsuke