Skip to main content
December 16, 2008
Answered

Use of javascript to resize div heights

  • December 16, 2008
  • 2 replies
  • 294 views
I'm using javascript to resize two divs (the 'navbar' navigation div on the left of the page, and the 'mainContent' div which sits to it's right).

The attached code shows how I'm doing it. The first three lines are added to my template, and the remaining is the contents of the javascript file (which I have not changed).

It used to work but as a result of making changes to my website it seems to have stopped working. I've checked the paths.

Can anyone suggest why it might be failing?

This topic has been closed for replies.
Correct answer
Found the answer. I had changed the navbar to use a list for the contents whereas before the contents were within paragraph tags. So the call to the function needed to reflect this, ie to become <body onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">

2 replies

Correct answer
December 17, 2008
Found the answer. I had changed the navbar to use a list for the contents whereas before the contents were within paragraph tags. So the call to the function needed to reflect this, ie to become <body onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">
December 17, 2008
Found the answer. I had changed the navbar to use a list for the contents whereas before the contents were within paragraph tags. So the call to the function needed to reflect this, ie to become <body onLoad="P7_equalCols2(0,'navbar','li','mainContent','p')">