Friday, 9 December 2011

How to set fixed height content DIV with scrolling using JQuery

Here is sample example for fixed height content DIV using Jquery

first find the Height of the screen by using the following code

var pageHeight = jQuery(window).height()


After set calculated height to that Div by using following code


$('#divid').css({"height":pageHeight});
  

No comments:

Post a Comment