/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function(){ $(window).load(function(){ // On load $('#div').css({'height':(($(window).height()))+'px'}); }); $(window).resize(function(){ // On resize $('#div').css({'height':(($(window).height()))+'px'}); }); });
Comments
