Dynamically resize div on asp.net Page with CSS

JacqMC41

New Member
I have a site that uses a master page which all the pages inherit from. The master page uses a style sheet for layout and feel. The basic Layout is this\[code\]<html><body ><form runat="server" ><div class="page" > <div class="header"> <div class="title"> </div> <div class="main"> <asp:ContentPlaceHolder ID="MainContent" runat="server"> </asp:ContentPlaceHolder> </div> <div class="clear"> </div> </div></div><div class="footer"></div></form>\[/code\]My issue is I would like the main div to re size based on the clients window sizein the Css for .page I have the width set to 85% and this works fine, but when I try to set the height to a percentage it only is the height of the content are of the screen that is loaded. If I set it to a pixel value it will show the the height proper to that setting but I would like it to grow and shrink based on the client window.I have search around and tried the min-height setting and other things I have found through goggle but none of them have worked.
 
Back
Top