[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 325
  • Last Modified:

image height in <td cell

hello.  I have an issue regarding an image height adjustment in a table cell.
my problem is that i want the image below to adjust it's height when the cell increases it's height.
this works fine in IE but not in mozilla firefox.  In IE, the images height automatically fills the cell but in firefox it just shows the original image size which of course is very small.  I need this because i have dynamic pages that requires the image to adjust it's height to take up the entire cell when more data is used in the cell for text information.
anyone know of anything that will work for mozilla AND IE?
thanks !!

<td align="left" valign="top" height="1" width="1">
<IMG SRC="images/bottom.gif" WIDTH=134 height="100%">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</td>
0
linuxrox
Asked:
linuxrox
  • 2
  • 2
2 Solutions
 
Irwin SantosComputer Integration SpecialistCommented:
<td align="left" valign="top" height="100%" width="1">
0
 
smaccariCommented:
This code will work on FF, but with the difference that FF will use 100% for the space available in the cell - less the <br>s places.

If you change the height of your cell, you will see the image expand, even in FF.

<td align="left" valign="top" height="100" width="1">
<IMG SRC="images/bottom.gif" WIDTH=134 height="100%">
</td>
0
 
linuxroxAuthor Commented:
i've found that the easiest way is to set <td height="1" width="1" background="myimage.jpg"> and make the image in the cell background tag.
now no matter how long the cell gets it looks exactly the same in IE and firefox.
thanks.
0
 
Irwin SantosComputer Integration SpecialistCommented:
cool. thank you.!
0
 
linuxroxAuthor Commented:
no problemo!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now