Quantcast
Channel: MobileRead Forums - Kindle Formats
Viewing all articles
Browse latest Browse all 862

position:absolute and the disappearing html file

$
0
0
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

Viewing all articles
Browse latest Browse all 862

Trending Articles