I'm using html and jquery to position an img into another container. Now I've run into the problem that is similar to this one: set Z index not working. button behind a container (HTML - CSS)
The only problem there is: The solution mentioned there does not work. The image I have is still shown to be UNDEr the button (which is an input field of type submit and one of type reset).
The image itself has z-index 2400 while the two buttons (and also the parent of the buttons) have position: relative and z-index of 1.
Now my question is what further optins are availble there?
As additional info as requested (the pictures are all 20 x 20 px)
var x = (pictureToWhichToPlace.left + 20).toString() + "px";
var y = (pictureToWhichToPlace.top + 20).toString() + "px";
$(document).find(".myInsertImageContainer").first().appendTo($(document).find(".subimg").first().parent());
$(document).find(".myInsertImageContainer").first().css({
'top': y, 'left': x, 'width': 24, 'height': 24, 'z-index': 2300, 'position': 'absolute'
});
$(document).find(".subimg").first().parent().css({
'z-index': 2200, 'position': 'relative'
});
The position I'm inserting it in is a div which has multiple images within:
<div>
<img class = "subimg" />
<img class = "subimg" />
<img class = "subimg" />
</div>
<div style="z-index: 1; position: relative">
<input type="submit"> value="mysubmit" />
</div>
<div class="myInsertImageContainer">
<img class = "myInsertImage" style="z-index: 2500; width:20;height:20 "/>
</div>
As mentioned in a comment the whole page is part of a nintex form so I put together the above to be as near to the original situation as possible without posting 10 pages of text.