Results 1 to 2 of 2

Thread: change the height of div element

  1. #1
    Join Date
    Jul 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default change the height of div element

    Hello

    I need to write code to change the hieght of "container" div if the height of child table of this div greater than 500px;

    the cild table of this div does not have ID

    I need this code to use it in joomla tamplate so I can't write id to the table

    any idea please

    I know this

    var tblHeight = document.getElementById('tableID').clientHeight;

    it;s not work with my problem

    thank you so much

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    How does the line you posted not work? Did you somehow determine the value which was read? How was the value not what you expected?

    (I'm assuming that you know the id of the table, which is easily enough to accomplish what you want.)
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

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
  •