Results 1 to 3 of 3

Thread: JSP Object Shifts Cell Height in IE

  1. #1
    Join Date
    Apr 2006
    Posts
    30
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default JSP Object Shifts Cell Height in IE

    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

    Here is the code in the cell:

    Code:
    <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!!!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hm. Try putting it all on one line:
    Code:
                      <img src="<%=zimages%>/login/hdrRprtLgn.jpg" alt="" width="739" height="29"><%}%>
                    </td>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Apr 2006
    Posts
    30
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    thanks twey, i thought I tried that, but now it seems to work great!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •