Note that there are some explanatory texts on larger screens.

plurals
  1. POdynamically expand tags
    primarykey
    data
    text
    <p>I'm having problems with setting the div and body tags to dynamically expand over the inner contain.</p> <p>Here is the HTML and CSS that I'm using, it is a little longer.</p> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;style&gt; body, p, b, ul, li, div { padding:0; margin:0; border:0; font-family:Arial, Helvetica, sans-serif; } body { background:white; } .clearfix { min-height: 1px; } .clearfix:after { content: "."; display: block; height: 0; font-size: 0; clear: both; visibility: hidden; } #searchform { position:absolute; height:110px; clear:both; } #b2_sbox_middle { width:980px; height:99px; background:url('img.jpg') repeat-x; border:1px solid #00CCCC; } #b2_inner_sf { margin-top:10px; } #sf_ch_container { clear:both; margin-left:27px; font-size:18px; } #sf_ch_formtitle { float:left; width:202px; font-size:18px; text-align:left; } #sf_ch_stype { float:left; } .stype { float:left; margin-left:27px; text-align: left; } &lt;/style&gt; &lt;body&gt; &lt;div align="center" class="clearfix"&gt; &lt;div id="searchform" align="center" style="top:105px; width:980px; margin-left:-490px; left:50%;" class="clearfix"&gt; &lt;div id="b2_sbox_middle"&gt; &lt;div id="b2_inner_sf" class="clearfix" style="border:0px solid;"&gt; &lt;div id="sf_ch_container" class="clearfix"&gt; &lt;div id="sf_ch_formtitle"&gt;SEARCH &lt;/div&gt; &lt;div id="sf_ch_stype"&gt; SEARCH&lt;/div&gt; &lt;/div&gt; &lt;div class="stype"&gt; &lt;input name="text" class="search-input" type="text" value="key" size="20" maxlength="50" /&gt; &lt;/div&gt; &lt;div class="stype" &gt; &lt;input name="text2" class="search-input" type="text" value="key" size="20" maxlength="40" /&gt; &lt;/div&gt; &lt;div class="stype" &gt; &lt;input name="text2" class="search-input" type="text" value="key" size="20" maxlength="40" /&gt; &lt;/div&gt; &lt;div class="stype" &gt; &lt;input name="text2" class="search-input" type="text" value="key" size="20" maxlength="40" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>If you run the code in Firefox or Chrome press F12 and watch the height of the body tag and of the first div after the body, you will see that none have dynamically changed their height to include the inner content.</p> <p>I don't know where the problems is in the CSS.</p> <p>And a second problem, if you make a preview using IE v.6 you will see that all the input fileds are disorder wich I don't understand why??</p> <p>Any help will be much appreciated!!</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.
    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