A rather basic question, I guess, but I want help with it.
I need to set up the height of div to 70% of the height of the browser window, and I want to do it with jQuery.
What's the best code for that?
Thank you for your help!
Dimitri Vorontzov
$('#theDiv').height(function(){
return $(window).height() * 0.7;
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With