Team:Tuebingen/Template/equalHeight

From 2013.igem.org

(Difference between revisions)
 
(7 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<head>
<head>
-
 
<style>
<style>
-
#footer-box{
 
-
  width: 40em;
 
-
  height: 0.5em;
 
-
  background-color: red;
 
-
  position: relative;
 
-
}
 
</style>
</style>
-
 
-
 
</head>
</head>
<body>
<body>
-
  <div id="footer-box"></div>
 
<script>
<script>
-
   var tfb = document.getElementById("footer-box").offsetTop;
+
   var tfb = document.getElementById("TueFooter").offsetTop;
   var tl = document.getElementById("left").offsetTop;
   var tl = document.getElementById("left").offsetTop;
    
    
-
   document.getElementById("left").style.height = tfb - tl + "px";
+
   document.getElementById("left").style.height = tfb - tl - 25 + "px";
</script>
</script>
</body>
</body>

Latest revision as of 23:40, 29 August 2013