Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Could you not just give the divs a max or min height depending on their purpose?</p> <p>I use a main container or wrapper div that the others would be contained in, that div is then my effective page or screen area.</p> <pre><code>&lt;div id="wrapper"&gt; &lt;div id="content"&gt; &lt;div id="sidebar"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; #wrapper{ min-height: Whatever value you want here; max-height: Whatever value you want here; } </code></pre> <p>It might be a good idea to set up your page using main container divs, hot only for the content but for the header and footer as well.</p> <p>As an example, I have a main wrapper that is the whole page, within that is the header div, the content div, the nav div and the footer div. These are the main ones. Everything else can then be contained within them.</p> <p>So, you can set the layout out using percentages so you have a fluid design that'll react to each browser size. The other elements will then 'fit' inside the main divs and be constrained to them. You may need to look into positioning etc but this is certainly the direction you should head towards.</p> <pre><code>&lt;div id="wrapper"&gt; &lt;div id="header"&gt;Header Here including any divs to be contained within this space&lt;/div&gt; &lt;div id="content"&gt;All content etc here&lt;/div&gt; &lt;div id="nav"&gt;This is your sidebar&lt;/div&gt; &lt;div id="footer"&gt;Footer, as per header&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Then use the css to re deisgn the above layout focusing only on those main divs. Use % instead of px to maintain fluidity.</p> <pre><code>#wrapper{ width: 100%; height: 100% } #header{ width: 100%; height: 20% } #content{ width: 70%; height: 60%; float:left; } #nav{ width: 30%; height: 60%; float:left; } #footer{ width: 100%; height: 20% } </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.
    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