obtenir la hauteur d'un div en js ( ou autre ??) - HTML/CSS - Programmation
Marsh Posté le 01-12-2003 à 16:06:54
heightid=document.getElementById("textcontain" ).style.height ??
Marsh Posté le 01-12-2003 à 16:08:33
document.defaultView.getComputedStyle(nObj,"" ).getPropertyValue("height" ) ???? 
 
(gecko only ?)
Marsh Posté le 01-12-2003 à 16:17:47
| walli a écrit : document.getElementById("textcontain" ).offsetHeight   | 
 ![[:cannabix] [:cannabix]](https://forum-images.hardware.fr/images/perso/cannabix.gif) merci walli
 merci walli 
 
(merci aussi fast ![[:bien] [:bien]](https://forum-images.hardware.fr/images/perso/bien.gif) )
)
Marsh Posté le 01-12-2003 à 15:48:33
'lu,
j'ai un div qui contient un contenu text dynamique :
j'essayes via js de recuperer la hauteur du calque :
la fonction me renvoie undefined .. y'a t'il une solution ?
merci
---------------
from here and there -- \o__________________________________ -- la révolution de la terre, en silence