Image Overlay Built-in pdf

I am trying to overlay the image above the built-in pdf and iFrame.

This code causes the image to fall behind the iFrame (it is checked by changing the lower attribute by -10px, and the lower part of the image becomes visible)

Only the two methods that I knew about used z-index, and the absolute position of the fact should put the object on top, but none of them work.

<div id="images" style="float:right;position:relative" width="400" height="250">
    <img src="images/Next_Black_Arrow.png" style="height:25px;width25px;float: left;z-index=10;position:absolute;bottom:10px;left:250px;">
    <iframe SRC="testFiles/Categories of pattern matching characters.pdf#toolbar=0&navpanes=0&scrollbar=0" style="z-index=1;position:relative;"  width="400" height="250"></iframe>
    </div>

* Attributes for the absence of shared css


So far this works, unfortunately, not if you change the iframe link to pdf.

See http://jsfiddle.net/vr4rX/4/

I think this should be a bug in Adobe Reader. Perhaps it really will work.

+3
source share
1 answer

: http://jsfiddle.net/vr4rX/1/

HTML:

<div id="images">
    <img src="http://t1.ftcdn.net/jpg/00/02/78/72/400_F_2787285_mlDf8ah974XHflVFrbQB3FM6Qxu1MT.jpg" />
    <iframe SRC="http://www.google.de"  width="400" height="250"></iframe>
</div>

CSS

#images {
    float:right;
    width: 400px;
    height: 250px;
    position: relative;
    z-index: 1;
}

#images img {
   height:25px;
    width:25px;
    z-index=2;
    position:absolute;
    bottom:20px;
    right:20px;
}
+2

All Articles