Hi,
<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td><a href="#"><img src="....jpg" width=46 height=46 border="0" alt=""></a><div id="blabla" style="position:relative; z-index:1; left: 0px; top: -46px; visibility: visible;"><img src="images/blabla.gif" border="0" alt="" width="46" height="46"></div>
</tr>
</table>
Das Bild im layer wird auch schön über das andere gelegt, ABER:
Die Tabellenzelle wird auf einmal doppelt so hoch! Wieso, der Layer liegt doch nicht unter dem Bild, sondern direkt drauf?
So ist relative definiert:
relative
The box's position is calculated according to the normal flow (this is called the position in normal flow). Then the box is offset relative to its normal position. When a box B is relatively positioned, the position of the following box is calculated as though B were not offset.
Der letzte Satz sagt es aus.
Wer hat eine Lösung?
Ich weiß ja nicht, was der Zweck der Operation sein soll? Bildklau verhindern? ==> Screenshot, schon hat man das Bild.
Ggf. das eigentliche Bild als Hintergrundbild des transparenten Bilds einbinden? (Hilft aber auch nicht gegen Bildklau)
cu,
Andreas
MudGuard? Siehe http://www.Mud-Guard.de/
Fachfragen per E-Mail halte ich für unverschämt und werde entsprechende E-Mails nicht beantworten. Für Fachfragen ist das Forum da.