Note that there are some explanatory texts on larger screens.

plurals
  1. PODynamic height div
    primarykey
    data
    text
    <p>See this code:<br /></p> <pre><code>&lt;div id="content"&gt; &lt;div id="firstrow"&gt; &lt;/div&gt; &lt;div id="secondrow"&gt; &lt;div class="newsrow"&gt; &lt;/div&gt; &lt;div class="mediarow"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="thirdrow"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="footer"&gt; &lt;ul&gt; &lt;li&gt;Home&lt;/li&gt; &lt;li&gt;Link1&lt;/li&gt; &lt;li&gt;Link2&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="lastpart"&gt;Copyright 2004 - 2011 &amp;copy; example.com , All rights reserved. &lt;/div&gt; </code></pre> <p>I deleted all contents of <code>firstrow</code>,<code>newsrow</code>,<code>mediarow</code> and <code>thirdrow</code> for simplicity. here is my css:<br /></p> <pre><code>#content{ width:1250px; position: relative; top: 0px; margin: 0 0 0 0; padding: 0 0 0 0; background: url("imgbg_body_03.png"); right: 66px; height:2550px; } #firstrow{ margin: 0px 20px 0 0; width:195px; float:right; } #secondrow{ background-color:#772255; width:740px; float:right; } .newsrow{ width:366px; float:right; margin: 2px 2px 2px 2px; text-align:right; color:#660066; /*font:bold 16px Arial;*/ }.mediarow{ /*background:url('imgbg_index_01.png');*/ width:366px; float:right; margin: 2px 2px 2px 2px; } #footer{ background: url("imgbg_body_02.png"); width:1250px; height:38px; position: relative; top: 0px; right:66px; margin: 0 0 0 0; padding: 0 0 0 0; } #footer ul{ margin: 0px 0 0 0; padding: 5px;/* 0 0 0;*/ } #footer ul li{ list-style-type:circle; display:inline; color:white; margin : 0 35px 0 35px; font:bold 12px Tahoma; } #footer ul li:hover{ color:#FFFF00; } #lastpart{ width:1250px; position: relative; top: 0px; margin: 0 0 0 0; padding: 20px 0 0 0; background: url("imgbg_body_04.png"); right: 66px; text-align:center; font-weight:bold; color:#660033; height:56px; direction: ltr !important; } </code></pre> <p>my problem is I want div with id <code>content</code> go longer or shorter according to biggest div inside it.I tried every possible value for <code>Height</code> but no one was useful. what should I do?<br /></p> <p>Thanks in advance. </p>
    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.
 

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