I am having trouble getting an image in my design to stretch correctly
with the main content. Here is a link
Now the image on the left below the navigation (the one that is 65
pixels tall) I want to strech from the bottom of the one image to the
top of the bottom menu. Like on this page
On that page I am trying to use this javascript code
<script language="javas cript" type="text/javascript">
var myVar = document.getEle mentById("siteC ontent").offset Height;
var nheight = myVar/10-200+'em';
alert('The height is '+myVar+' the new height is '+nheight );
</script>
<style>
#leftSide5heigh t {
height:nheight;
}
</style>
But it seems that
height:nheight;
isnt the correct way to pass the variable that i determine because it
works if I put a number in there like this
#leftSide5heigh t {
height:50em;
}
Any ideas how to get the correct number and pass the variable? Thanks
for your help.
with the main content. Here is a link
Now the image on the left below the navigation (the one that is 65
pixels tall) I want to strech from the bottom of the one image to the
top of the bottom menu. Like on this page
On that page I am trying to use this javascript code
<script language="javas cript" type="text/javascript">
var myVar = document.getEle mentById("siteC ontent").offset Height;
var nheight = myVar/10-200+'em';
alert('The height is '+myVar+' the new height is '+nheight );
</script>
<style>
#leftSide5heigh t {
height:nheight;
}
</style>
But it seems that
height:nheight;
isnt the correct way to pass the variable that i determine because it
works if I put a number in there like this
#leftSide5heigh t {
height:50em;
}
Any ideas how to get the correct number and pass the variable? Thanks
for your help.
Comment