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

©2024 | Privacy Policy | Contact Us