Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- var grid = $(window).height();
- var gridFinal = grid - 140;
- $('.grid').css({'min-height': ((gridFinal))+'px'});
- });
- window.onload = getIDHeight;
- function getIDHeight() {
- var myHomeHeight = document.getElementById("home").offsetHeight;
- document.getElementById("home-services").style.height = myHomeHeight - 15 +"px";
- }
- window.addEventListener('load', function (){
- var myNewsHeight = document.getElementById("blog").offsetHeight;
- document.getElementById("social-media").style.height = myNewsHeight - 15 +"px";
- });
- window.addEventListener('load', function (){
- var myAboutHeight = document.getElementById("references").offsetHeight;
- document.getElementById("about").style.height = myAboutHeight - 25 +"px";
- });
- window.addEventListener('load', function (){
- var myServicesHeight = document.getElementById("services").offsetHeight;
- document.getElementById("guidelines").style.height = myServicesHeight - 15 +"px";
- });
- window.addEventListener('load', function (){
- var myTipsHeight = document.getElementById("tips").offsetHeight;
- document.getElementById("recommendations").style.height = myTipsHeight - 20 +"px";
- });
- window.addEventListener('load', function (){
- var myContactHeight = document.getElementById("contact-info").offsetHeight;
- document.getElementById("email").style.height = myContactHeight - 15 +"px";
- });
- html,body{
- height:100%;
- }
- #column1{
- height:100%;
- }
- #column2{
- height:100%;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement