Greetings and Hello
I am trying to put together a wordpress site, now because the content in the main div is going to be a different height with every page I need the na
could be several reasons:
1) as Waleed says you are missing a closure.
2) If you did not set an explicit style for
document.getElementById('sidebar').style.height
it will return ""
3) Be careful assuming style.height and offsetHeight are equivalent. Depending on browsers, one or the other may be accounting for margins and paddingC: