Home  >  Forum  >  JavaScript
Post New Query

How to Set Page Height Dynamically in jQuery



Asked on August 02, 2014
I want to set page height dynamically using jQuery, Please help me.



Replied on August 02, 2014
By $(window).height() you can set the page height, first of calculate the window height and take in variable. You can assign window height in container where you want to fix page height. Ex –
……..
var getHeight = $(window).height(); $(‘.container’).css(‘height’, getHeight);

Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us