function fillthescreen(){ winH = windowHeight(); //This returns the screen heigth heightNeeded=winH-40; //We need to substract the footer height if( typeof( window.innerWidth ) != 'number' ) { //Explorer doesn't recognize minHeight document.getElementById('co11').style.height=heightNeeded+'px'; //So, we use height (and explroer bug) } document.getElementById('col1').style.minHeight=heightNeeded+'px'; //For every other browser, we use minHeight }