0
$(document).ready(function(){
var heightJanela = $(window).height() + "px";
$("#banner-hold").css("height",heightJanela);
});
I performed the above code, so that when the document is loaded, the div
"banner-hold" receives the height
same as in the window. So that the same function was performed when the window received a resize
, I switched the .ready
for .resize
and .change
but neither worked, how can I correct that ?
perfect, exactly what I was looking for :D
– Murilo Melo