PDA

View Full Version : JSP Object Shifts Cell Height in IE



dude9er
12-15-2006, 05:19 PM
I have a JSP object that changes an image based on what page is loaded. The script calls the image, but the close tags leave a small space in my table.

Here is the example, the small space between the "Page Build Login" and the login form: LINK (http://panapacific.jsn-server1.com/zadmin/company/AdminLoginForm.do?compid=1000&menu=builder)

Here is the code in the cell:



<tr>
<td colspan="5" align="left" valign="bottom">
<%if(menu.equals("builder")){%>
<img src="<%=zimages%>/login/hdrPgBldrLgn.jpg" alt="" width="739" height="29" />
<%}else if(menu.equals("reports")){%>
<img src="<%=zimages%>/login/hdrRprtLgn.jpg" alt="" width="739" height="29" />
<%}%> <!-- this close tag causes the problem -->
</td>
</tr>


The jsp object close tag ( <%}%> ) is not letting the image site flush to the bottom of the cell in IE. Of course FF is fine.

Is there a to format this to look correct and still be able to include the function.

Thanks in advance!!!

Twey
12-15-2006, 06:09 PM
Hm. Try putting it all on one line:
<img src="<%=zimages%>/login/hdrRprtLgn.jpg" alt="" width="739" height="29"><%}%>
</td>

dude9er
12-15-2006, 06:19 PM
thanks twey, i thought I tried that, but now it seems to work great!!