Web Analytics Made Easy -
StatCounter Evening out tables - CodingForum

Announcement

Collapse
No announcement yet.

Evening out tables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Evening out tables

    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,
    Code:
    <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';
    };
    </script>
    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?

  • #2
    ??? 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?
    Be yourself. No one else is as qualified.

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎