Note that there are some explanatory texts on larger screens.

plurals
  1. POFull height Web Application
    primarykey
    data
    text
    <p>i would like to make my website utilize the full height of the browser. I have tried all the usual css to no avail. id like the Sidebar and main content to fill the full height of the browser while the header should stay the fixed height.</p> <p><a href="http://jsfiddle.net/damo642/Yu8YU/" rel="nofollow">jsFiddle</a></p> <p>Any help appreciated thanks Damo</p> <p><strong>HTML</strong></p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;script src="assets/js/jquery.js" type="text/javascript"&gt;&lt;/script&gt; &lt;title&gt;TestSite&lt;/title&gt; &lt;link href="assets/css/Main.css" rel="stylesheet" type="text/css" /&gt; &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;asp:ScriptManager ID="ScriptManager1" runat="server" LoadScriptsBeforeUI="True"&gt; &lt;/asp:ScriptManager&gt; &lt;asp:UpdatePanel ID="UpdatePanel" runat="server"&gt; &lt;ContentTemplate&gt; &lt;div id="HeaderWrapper"&gt; &lt;div id="Header"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="ContentWrapper"&gt; &lt;div id="Sidebar"&gt; &lt;/div&gt; &lt;div id="Content" style="border: thin solid #666666" class="Tabs"&gt; &lt;/div&gt; &lt;!-- end of content --&gt; &lt;/div&gt; &lt;!-- end of wrapper --&gt; &lt;div&gt; &lt;asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/div&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;​ </code></pre> <p><strong>CSS</strong></p> <pre><code>#HeaderWrapper { width: 100%; clear: both; height: 80px; margin-top:2px; margin-bottom:2px; margin-right:0px; margin-left:0px; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#99CCFF'); /* for IE */ background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#9CF)); /* for webkit browsers */ background: -moz-linear-gradient(top, #FFF, #9CF); /* for firefox 3.6+ */ padding-top:0px; padding-bottom:0px; padding-right:0px; padding-left:0px; border-bottom:thin solid #FFFFFF; } #Header { width:1024px; margin: 0 auto; padding-top:0px; padding-bottom:0px; padding-right:0px; padding-left:0px; border-radius: 5px; } #ContentWrapper { width:1024px; margin: 0 auto; padding-top:0px; padding-bottom:0px; padding-right:0px; padding-left:0px; border-radius: 5px; } /* sidebar */ #Sidebar { float: left; width: 184px; padding: 0px; height:800px; border: thin solid #666666; padding:0px; border-radius: 0px; margin-top:0px; margin-bottom:0px; margin-right:6px; margin-left:0px; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#FFFFFF'); /* for IE */ background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#FFF)); /* for webkit browsers */ background: -moz-linear-gradient(top, #FFF, #FFF); /* for firefox 3.6+ */ } /* end of sidebar --&gt; /* content */ #Content { float: left; width: 824px; padding-top:0px; padding-bottom:0px; padding-right:0px; padding-left:0px; min-height:800px; border-radius: 0px; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#FFFFFF'); /* for IE */ background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#FFF)); /* for webkit browsers */ background: -moz-linear-gradient(top, #FFF, #FFF); /* for firefox 3.6+ */ } /* End content */ /* End content */ html,body { margin:0px; padding:0px; font-family: Arial, Helvetica, sans-serif; font-size:13px; line-height:1.5em; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003366', endColorstr='#FFFFFF'); /* for IE */ background: -webkit-gradient(linear, left top, left bottom, from(#036), to(#FFF)); /* for webkit browsers */ background: -moz-linear-gradient(top, #036, #FFF); /* for firefox 3.6+ */ height: 100%; }​ </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload