PDA

View Full Version : JS element height help



brndn
August 1st, 2008, 06:04 AM
hi there
I am trying to get the following elements to display a height that is the same as the parent container.

var divHeight = ((document.getElementById('content').offsetHeight) + 'px')
alert(divHeight);
document.getElementById('col1').style.height = divHeight;
document.getElementById('col2').style.height = divHeight;
document.getElementById('col3').style.height = divHeight;
</script>


unfortunately divHeight has no value. it relies on the content that is inside it.

if that makes sense??


any help much apreciated.

cheers

brndn
August 1st, 2008, 01:15 PM
bump^^

ereieoty
August 10th, 2008, 06:35 AM
bump up ..----------------------------------------------------------------our wow power leveling and wow gold site:buy wow power leveling (http://www.powerlevelingweb.com),wow power leveling (http://www.powerlevelingweb.com/wow-power-leveling-us.asp), cheap wow power leveling (http://www.xowow.com),wow power leveling (http://www.xowow.com/wow-powerleveling.asp),Cheap WoW Gold (http://www.gamelee.com)