• 0

table height in JS


Question

I have spent the past two hours trying to get this to work with no success, but no such luck.

I have a table in html with no specified height. I want it to be as long as the text content.

I have an image in the cell beside it (it can't be tiled) that i want to be stretched to the height of this table.

Using javascript can't i reference the height of the table. i mean once it's generated the browser knows how tall it is.

I was hoping to specify it somthing like this:

<table name="aaa"><tr>

<td>

<img src="whatever.jpg" width="12" height="java script:document.all.aaa.height"></td>

<td>

(text of some length)

</td>

</tr>

</table>

can someone please help me out here?

thanks in advance.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.