faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 1 people (0%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

How to manipulate table cell height according to another object's dimensions? (e.g. DIV height)

Apr 9th, 2008 20:30
ha mo, Dave Clark, Mirabel Mora,


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mirabel,
     Just give both the table cell and the DIV an ID value.  Then:
var hgt = document.getElementById('divId').offsetHeight;
document.getElementById('cellId').style.height = hgt+'px';
Take care,
Dave Clark
www.DaveClarkConsulting.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.businessian.com
http://www.healthinhealth.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com