Difference between revisions of "Template:Newcastle/navbar2"

Line 116: Line 116:
 
}
 
}
  
.expand_btn {
+
#expand_btn {
 
     z-index: 101;
 
     z-index: 101;
 
     position: absolute;
 
     position: absolute;
Line 136: Line 136:
 
     }
 
     }
 
}
 
}
 +
 +
document.getElementById("expand_btn").style.top = document.getElementById("navbar").style.height
  
 
</script>
 
</script>
Line 231: Line 233:
  
 
</div>
 
</div>
<div class="expand_btn"><button onclick="myFunction()">Toggle</button></div>
+
<div id="expand_btn"><button onclick="myFunction()">Toggle</button></div>
 
      
 
      
 
</body>
 
</body>
  
 
</html>
 
</html>

Revision as of 20:55, 16 October 2018