I am trying to put a transparent gif on top of a jpg, both inside a table cell. Here is the code:
The gif does go on top of the jpeg indeed at the top of the cell, the cell and outer box remains 80 pixel high, everything is ok with Firefox.
In IE and Opera though, the cell/box grows from 80 pixels to 112 pixels high, i.e. it looks like first it expands to fit the 80+32 px, then the inner box moves to the top as it ought to, but the outer one remains at 112 pixels high, resulting with a big space under the bottom image...
What is going wrong? How can I fix it? I cannot change the cell dimensions...
Code:
<table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#121663"> <tr> <td height="80"> <div style="z-index:0; position:relative; left:27; top:0; width: 545px; height: 80px"> <img src="img/logobottom.jpg" width="545" height="80" border="0" usemap="#MapMap" alt="a_map"> <span style="z-index:1; position:relative; left:44; top:-80; width: 457px;"> <img src="img/lights.gif" width="457" height="32" border="0" alt="lightsp"></span></div> </td> </tr> </table>
In IE and Opera though, the cell/box grows from 80 pixels to 112 pixels high, i.e. it looks like first it expands to fit the 80+32 px, then the inner box moves to the top as it ought to, but the outer one remains at 112 pixels high, resulting with a big space under the bottom image...
What is going wrong? How can I fix it? I cannot change the cell dimensions...
Comment