www.webdeveloper.com
Results 1 to 2 of 2

Thread: Change TR height

  1. #1
    Join Date
    Nov 2002
    Posts
    6

    Change TR height

    I have the following table :

    <table width="129" border="0" cellpadding="1" cellspacing="1" height='100%'>
    <tr id='trblaat1' style='height:50%'>
    <td height='100%'>
    some text
    </td>
    </tr>
    </table>

    And I have the following javascript function

    function test(){
    element=document.getElementById("trblaat1");
    }


    Now I want to alter the function test so that the function will change the height of the table.

    I've already tried it with

    function test(){
    element=document.getElementById("trblaat1");
    element.style.offsetHeight("100%");
    }

    but that didn't worked

    Does anybody have a solution ?
    God is real , unless declared int.

  2. #2
    Join Date
    Nov 2002
    Posts
    6
    never mind ...

    I have it ....
    God is real , unless declared int.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles