SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Jul 3, 2002, 06:57 #1
- Join Date
- Dec 2000
- Location
- Grosseto, Italy
- Posts
- 189
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
applying hight of a table cell to a variable
Hi,
Is there a way I can create a function and a apply to a variable the height of a precise table cell <td>? even if the <td> tag doesn't have an absolute height set, and it's height is determined by the content within it?
Let's say for example that I have the following html code:
<table width="100" border="1" cellspacing="0" cellpadding="0">
<tr><td><p> </p></td></tr>
<tr><td>I need to apply the height of this cell to a js variable! what steps should I follow?</td></tr>
<tr><td><p> </p></td</tr></table>
thanks
-
Jul 4, 2002, 03:45 #2
- Join Date
- Feb 2002
- Location
- Gatwick, UK
- Posts
- 1,206
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
offsetHeight
Flawless---=| If you're going to buy a pet - get a Shetland Giraffe |=---
Bookmarks