View Single Post
Old 11-29-2015, 11:34 AM   #1
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 173
Karma: 40000
Join Date: Oct 2013
Device: kindle
position:absolute and the disappearing html file

Hello.

I did some positioning in an AZW3. The code goes like this

Code:
<div class="sgc1">
    <p>ONE SHORT LINE</p>

    <p>another one</p>

    <p>3rd shortline</p>
  </div>

  <p class="sgc3"><img src="../images/00002.jpeg"/></p>
And in the CSS i gave position:absolute to the sgc1 and sgc3, the former with top:10% and the latter with bottom: 0.

To my surprise, the html file in question didn't show up in the kindle. It was simply skipped. It did show correctly, though, in the calibre previewer. I changed the sgc1 (and only that) to margin-top:10%, with no position declaration, and the file appeared again.

Any idea what's going on? I tried this on two different devices, a paperwhite and an older one.

Thanks

Last edited by 1v4n0; 11-29-2015 at 11:47 AM.
1v4n0 is offline   Reply With Quote