Note that there are some explanatory texts on larger screens.

plurals
  1. POTwo columns of three DIV's each
    primarykey
    data
    text
    <p>I am trying to place two columns of three vertical DIV's side by side. The left column is the main text area and the right column is for misc info. The top and bottom DIV of each column is just an image with rounded corners. The center DIV is for the text. Furthermore, I would ideally like the center DIV in each column fo automatically expand vertically in proportion with the text content.</p> <p>Following is my CSS:</p> <pre><code>.main_bkgd_tp_img { background: url(../images/text.main.tp.gif); float:left; width: 400px; height: 20px; } .main_bkgd_btm_img { background: url(../images/text.main.btm.gif); float:left; width: 400px; height: 20px; } .mainbody { background: url(../images/text.main.fill.gif); position:relative; float:left; width: 400px; height: 300px; } .mainbody .text { position:absolute; top:10px; left:20px; width:95%; } .mainbody p { position:relative; font:normal 12px verdana, arial, helvetica, sans-serif; color:#000; line-height:15px; } .mainbody h1, h2 { position:relative; color:#000; line-height:15px; } .rtcol_bkgd_tp_img { background: url(../images/rtcol.main.tp.gif); float:right; width: 100px; height: 20px; } .rtcol_bkgd_btm_img { background: url(../images/rtcol.main.btm.gif); float:right; width: 100px; height: 20px; } .rtcolbody { background: url(../images/rtcol.main.fill.gif); position:relative; float:right; width: 100px; height: 300px; } .rtcolbody .text { position:absolute; top:10px; right:20px; width:95%; } .rtcolbody p { position:relative; font:normal 12px verdana, arial, helvetica, sans-serif; color:#000; line-height:15px; } .rtcolbody h1, h2 { position:relative; color:#000; line-height:15px; } </code></pre> <p>And following is my HTML:</p> <pre><code> &lt;div class="main_bkgd_tp_img"&gt;&lt;/div&gt; &lt;div class="mainbody"&gt; &lt;div class="text"&gt; &lt;h4&gt; This is made up text just for testing purposes. The real text will be added later.&lt;/h4&gt; &lt;h4&gt; This is more made up text just for testing purposes. The real text will be added later. &lt;/h4&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="main_bkgd_btm_img"&gt;&lt;/div&gt; &lt;div class="rtcol_bkgd_tp_img"&gt;&lt;/div&gt; &lt;div class="rtcolbody"&gt; &lt;div class="text"&gt; &lt;h4&gt; This is a test. &lt;/h4&gt; &lt;br/&gt; &lt;h4&gt;This text is just for testing purposes. The real text will be added later. &lt;/h4&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="rtcol_bkgd_btm_img"&gt;&lt;/div&gt; </code></pre> <p>The actual page in process can be seen <a href="http://www.rkmpcservices.com/azdance/company.html" rel="nofollow">here</a>.</p> <p>Thank you!</p> <hr> <p>I believe I figured this out. For each of the "rtcol_...." CSS entries I changed "float:right" to "margin-left: 420px.</p> <p>I still need to know how to make the middle DIV expand automatically in correlation with the text content.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    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