I am working on an asp.net
web application.
There is a child form of a master page
. Master page has not defined any height but it has defined a X px
height for the child form
.
On the child form it has one fieldset
container and within this 2 table container
and one container
for gridview control
.
As per my knowledge I have set the height of #mainOuter_box
as auto
and height of child form container (#child_contentbox1
) as auto
too.
but this strategy is not working as desired. However I have tried this one code sample too (which I got from this stackoverflow question thread how to size a div's height to its container height, using CSS? but I have doubt if I have written it properly.
$(document).ready(function(){
$("#mainOuter_box").css('height',$("#child_contentbox1").innerHeight()+$("#child_contentbox2").innerHeight()+$("#child_contentbox3").innerHeight());
});
please suggest me how can I increase the height of #mainOuter_box
when, the data/records increase the height of the gridview
container box.
Thank you! update here is jsfiddle link, where i have attached css and html of master form. Thanks so much for your kind guidance!! http://jsfiddle.net/nikhilbs09_1/325oes4m/