title: How to make the height of a div box depend on how much text is in it
body: <p>I fixed the width to 900px but I want the height to depend on the amount of text and objects in it. Is there a way to do this, this is the CSS I currently have for the div</p>
  
  <pre><code>#mainbox {
  padding:0;
  margin:0 auto;
  width:900px;
  border:solid 2px  
  </code></pre>
  
  <p>}</p>