taith Posted January 23, 2008 Share Posted January 23, 2008 anyone know how to get the real height/width of something? width/height in px? <span id=test style="border:1px solid black;height:50%;">df</span> <script> var ie4=false; if(document.all) ie4=true; function getObject(id){ if(ie4) return document.all[id]; else return document.getElementById(id); } alert(getObject('test').style.height); </script> Link to comment https://forums.phpfreaks.com/topic/87414-solved-getting-real-heightwidth/ Share on other sites More sharing options...
taith Posted January 23, 2008 Author Share Posted January 23, 2008 found it! nm Link to comment https://forums.phpfreaks.com/topic/87414-solved-getting-real-heightwidth/#findComment-447142 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.