View Full Version : Evening out tables

08-31-2011, 09:22 PM
Hey guys,

I ran into a problem designing my site. All is working, but this.

As you can see, the table on the right is not even with the table on the left. This code has worked in the past,

<script type="text/javascript">
window.onload = function () {
var divArray = document.getElementById('tablecontent').offsetHeight;
var subtraction = divArray - 442;
var tablesidebar = document.getElementById('tablesideba');
tablesidebar.style.paddingBottom = subtraction + 'px';

But that only works for a static page. The problem is now, both tables, the one on the left, and the one on the right, are dynamic. Either could have different heights depending on what page you are visiting. Different pages also have more than one table, and the only way I could see this working is with a million if statements or each page, defining each table being used. Is there anyway to get these two tables evened out, no matter the content using JavaScript?

Old Pedant
08-31-2011, 10:15 PM
??? I can't tell what you mean by the left and right tables.

Is the left table the stuff that includes VATSIM PILOTS, only?

Or is the left table the part that is headed by LATEST PILOTS?