Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate height of div container?

Status
Not open for further replies.

tviman

Programmer
Jul 25, 2002
2,123
US
I've looked around the 'net and I think I already know the answer but I'd thought I'd throw this out for S & G's...

is it possible to calculate the height of a fixed-width div container?

Thanks
 
tviman, you would have to do this with javascript (correct forum forum216: Javascript).

Code:
document.getElementById('MyDiv').offsetHeight;

Cheers

nick
 
Thank you all for pointing me in the right direction!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top