Thread: 100% height
View Single Post
04-05-2007, 04:27 PM
#12
theenglishguy is offline theenglishguy
Status: I'm new around here
Join date: Apr 2007
Location: louth, lincolnshire
Expertise:
Software:
 
Posts: 2
iTrader: 0 / 0%
 

theenglishguy is on a distinguished road

  Old

The method I use uses JavaScript in the <head>

Code:
  <script type="text/javascript">
    window.onload = function() {
      var b1 = document.getElementById("columnone");
      var b2 = document.getElementById("columntwo");
      var m  = Math.max(b1.offsetHeight, b2.offsetHeight);
      if (b1.offsetHeight!=m) b1.style.height=m+'px';
      if (b2.offsetHeight!=m) b2.style.height=m+'px';
    }
  </script>