title: XHTML CSS Auto Height Div Problems
body: <p>Basically I'm laying out a website and I'm using DIV's to have a header, left-column, right-column and footer. I want to have the content section of the website expandable to the html/text inserted into it so  i have been using height: auto.</p>
  
  <p>I'm using background images for the top of the header, bottom of the footer and a 1px high filler for the body of the website.</p>
  
  <p>My problem is everything I have tried essentially eliminates the middle background image if I try to have the right-col to the right of the left-col and not under it.</p>
  
  <p>I'm sure this is probably something pretty easy but I have been on it since last night and I'm about up done trying to figure it out. </p>
  
  <p>it's valid XHTML and CSS (except for jQuery UI stuff that is CSS3, though that shouldn't matter structurally).</p>
  
  <p>Any ideas or could someone point me to a tutorial on how to get a two column layout using background images?</p>
  
  <pre><code>&lt;body&gt;
     &lt;div id="top"&gt;
           THE TOP IMAGE GOES HERE IN CSS
     &lt;/div&gt;
     &lt;div id="wrapper"&gt;
          &lt;div id="header"&gt;
  
          &lt;/div&gt;
  
          &lt;div id="navigation"&gt;
                  &lt;/div&gt;
  
          &lt;div id="content"&gt;
              &lt;div id="left-col"&gt;
  
              &lt;/div&gt;
  
              &lt;div id="right-col"&gt;
  
              &lt;/div&gt;
  
          &lt;/div&gt;
     &lt;/div&gt;
  
     &lt;div id="bottom"&gt;
           THE BOTTOM IMAGE GOES HERE IN CSS
     &lt;/div&gt;
  
     &lt;div id="footer"&gt;
  
     &lt;/div&gt;
  &lt;/body&gt;
  
  
  #wrapper { 
   margin: 0 auto;
   width: 838px;
   background-image:url('../images/wrapper_bg.gif');
   background-repeat:repeat-y;
  
  }
  #header {
   width: 818px;
   color: #333;
   padding: 10px;
   height: 100px;
  }
  
  #navigation {
   width: 838px;
  }
  
  #content { 
   width: 838px;
   color: #333;
   margin: 0px 0px 0px 0px;
  
   /*min-height: 800px;*/
   height: auto;
  }
  #footer { 
   width: 838px;
   color: #333;
   text-align: center;
  
  }
  
  #top{
   margin: 0 auto;
   width: 838px;
   height:14px;
   background-image:url('../images/wrapper_top.gif');
  }
  
  #bottom{
   clear: both;
   margin: 0 auto;
   width: 838px;
   height:14px;
   background-image:url('../images/wrapper_bottom.gif');
  }
  
  #left-col{
   margin-left: 20px;
   width: 590px;
   float:left;
   height: auto;
  }
  
  #right-col{
   width: 170px;
   display: inline;
  
   height: auto;
   margin-right: 25px;
   color: #777777;
   font-size: 15px;
   padding: 5px;
   font-weight: bold;
  }
  </code></pre>
  
  <p><a href="http://www.wholehealthconnect.org/home.php" rel="nofollow noreferrer">http://www.wholehealthconnect.org/home.php</a> is the website.</p>
  
  <p>Can anyone help me get the middle div to expand to content as well as have the right col next to the left col and still have the background image behind them?</p>