SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    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>&nbsp;</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>&nbsp;</p></td</tr></table>

    thanks

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    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

Posting Permissions

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