In javascript, can I assign like this:
var tempHeight = document.getElementById("header").offsetHeight;
document.getElementById("content").style.top = tempHeight;
After running above script, will the div “content” have “top” propery = tempHeight?
I tried but it does not work, any suggestions?
Thanks!
You just need a unit